This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* __ __ __ | |
* ____/ /_ ____/ /______ _ ___ / /_ | |
* / __ / / ___/ __/ ___/ / __ `/ __/ | |
* / /_/ / (__ ) / / / / / /_/ / / | |
* \__,_/_/____/_/ /_/ /_/\__, /_/ | |
* / / | |
* \/ | |
* http://distriqt.com | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OCR.service.addEventListener( OCREvent.RECOGNISE, ocr_recogniseHandler ); | |
OCR.service.addEventListener( OCREvent.RECOGNISE_ERROR, ocr_recogniseErrorHandler ); | |
var options:OCROptions = new OCROptions(); | |
options.language = "eng"; | |
options.whitelist = "0123456789.,€$"; | |
var success:Boolean = OCR.service.recognise( image.bitmapData, options ); | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (LocalAuth.service.canAuthenticateWithFingerprint()) | |
{ | |
// Fingerprint authentication is available | |
LocalAuth.service.addEventListener( LocalAuthEvent.AUTH_SUCCESS, authSuccessHandler ); | |
LocalAuth.service.addEventListener( LocalAuthEvent.AUTH_FAILED, authFailedHandler ); | |
LocalAuth.service.authenticateWithFingerprint( "Unlock access to locked feature" ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var viewport:Rectangle = new Rectangle( 0, 0, 500, 800 ); | |
NativeMaps.service.addEventListener( NativeMapEvent.MAP_CREATED, mapCreatedHandler ); | |
var success:Boolean = NativeMaps.service.createMap( viewport.width, viewport.height, viewport.x, viewport.y, MapType.MAP_TYPE_HYBRID ); | |
if (success) | |
{ | |
trace( "Map creation started successfully" ); | |
} | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
import com.distriqt.extension.image.Image; | |
import com.distriqt.extension.image.ImageFormat; | |
import com.distriqt.extension.image.events.ImageDataEvent; | |
import com.distriqt.extension.image.events.ImageEvent; | |
import flash.display.Bitmap; | |
import flash.display.BitmapData; | |
import flash.display.Loader; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<manifest android:installLocation="auto"> | |
<uses-permission android:name="android.permission.INTERNET"/> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | |
<!-- optional if your application REQUIRES the camera --> | |
<uses-feature android:name="android.hardware.camera" android:required="true" /> | |
<application android:hardwareAccelerated="true"> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CameraUI.service.addEventListener( CameraUIEvent.COMPLETE, cameraUI_completeHandler ); | |
CameraUI.service.addEventListener( CameraUIEvent.CANCEL, cameraUI_cancelHandler ); | |
var options:CameraUIOptions = new CameraUIOptions(); | |
options.videoQuality = QualityType.TYPE_HIGH; | |
CameraUI.service.launch( MediaType.VIDEO, options ); | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CameraUI.service.addEventListener( CameraUIEvent.COMPLETE, cameraUI_completeHandler ); | |
CameraUI.service.addEventListener( CameraUIEvent.CANCEL, cameraUI_cancelHandler ); | |
CameraUI.service.launch( MediaType.IMAGE ); | |
... | |
private function cameraUI_completeHandler( event:CameraUIEvent ):void | |
{ | |
// Here you can use the event.path to access the media file as you require |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var loader:WebPLoader = WebP.service.createLoader(); | |
loader.addEventListener( WebPLoaderEvent.COMPLETE, loader_completeHandler ); | |
loader.addEventListener( WebPErrorEvent.ERROR, loader_errorHandler ); | |
var success:Boolean = loader.load( file.url ); | |
trace( "loader.load( " + file.url + " ) = " + success ); | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iPhone> | |
<InfoAdditions><![CDATA[ | |
<key>UIDeviceFamily</key> | |
<array> | |
<string>1</string> | |
<string>2</string> | |
</array> | |
]]></InfoAdditions> | |
<requestedDisplayResolution>high</requestedDisplayResolution> | |
<Entitlements> |