Packagecom.myflashlab.air.extensions.firebase.mlkit
Classpublic class Mlkit
InheritanceMlkit Inheritance Object



Public Properties
 PropertyDefined By
  statsCollectionEnabled : Boolean
[static]
Mlkit
Public Methods
 MethodDefined By
  
[static] Clean all Native Firebase Vision Objects.
Mlkit
  
[static]
Mlkit
  
[static]
Mlkit
  
createVisionImageFromFile($file:File, $useAirPrefixForAndroid:Boolean = true):VisionImage
[static]
Mlkit
  
[static] Deprecated, use 'cleanNativeReferences' instead
Mlkit
  
init():void
[static]
Mlkit
  
[static]
Mlkit
  
[static]
Mlkit
  
[static]
Mlkit
  
[static]
Mlkit
  
[static]
Mlkit
  
[static]
Mlkit
Public Constants
 ConstantDefined By
  EXTENSION_ID : String = com.myflashlab.air.extensions.firebase.mlkit
[static]
Mlkit
  ON_CLOUD : int = 1
[static]
Mlkit
  ON_DEVICE : int = 0
[static]
Mlkit
  VERSION : String = 8.0.1
[static]
Mlkit
Property Detail
statsCollectionEnabledproperty
statsCollectionEnabled:Boolean


Implementation
    public static function get statsCollectionEnabled():Boolean
    public static function set statsCollectionEnabled(value:Boolean):void
Method Detail
cleanNativeReferences()method
public static function cleanNativeReferences():void

Clean all Native Firebase Vision Objects. Doing this will invalidate all the VisionImage objects and you must create new ones afterwards.

createVisionImageFromBitmapData()method 
public static function createVisionImageFromBitmapData($bmd:BitmapData):VisionImage

Parameters

$bmd:BitmapData

Returns
VisionImage
createVisionImageFromBytes()method 
public static function createVisionImageFromBytes($bytes:ByteArray, $metadata:VisionImageMetadata):VisionImage

Parameters

$bytes:ByteArray
 
$metadata:VisionImageMetadata

Returns
VisionImage
createVisionImageFromFile()method 
public static function createVisionImageFromFile($file:File, $useAirPrefixForAndroid:Boolean = true):VisionImage

Parameters

$file:File
 
$useAirPrefixForAndroid:Boolean (default = true)

Returns
VisionImage
doGarbageCollect()method 
public static function doGarbageCollect():void

Deprecated, use 'cleanNativeReferences' instead

init()method 
public static function init():void

initBarcodeDetector()method 
public static function initBarcodeDetector($options:BarcodeDetectorOptions = null):BarcodeDetector

Parameters

$options:BarcodeDetectorOptions (default = null)

Returns
BarcodeDetector
initFaceDetector()method 
public static function initFaceDetector($options:FaceDetectorOptions = null):FaceDetector

Parameters

$options:FaceDetectorOptions (default = null)

Returns
FaceDetector
initImageLabeler()method 
public static function initImageLabeler($type:int, $options:ImageLabelerOptions = null):ImageLabeler

Parameters

$type:int (default = NaN)
 
$options:ImageLabelerOptions (default = null)

Returns
ImageLabeler
initLandmarkDetector()method 
public static function initLandmarkDetector($options:LandmarkDetectorOptions = null):LandmarkDetector

Parameters

$options:LandmarkDetectorOptions (default = null)

Returns
LandmarkDetector
initLanguageIdentifier()method 
public static function initLanguageIdentifier($options:LanguageIdentifierOptions = null):LanguageIdentifier

Parameters

$options:LanguageIdentifierOptions (default = null)

Returns
LanguageIdentifier
initTextRecognizer()method 
public static function initTextRecognizer($type:int, $options:TextRecognizerCloudOptions = null):TextRecognizer

Parameters

$type:int (default = NaN) — Mlkit.ON_DEVICE or Mlkit.ON_CLOUD
 
$options:TextRecognizerCloudOptions (default = null)

Returns
TextRecognizer
Constant Detail
EXTENSION_IDConstant
public static const EXTENSION_ID:String = com.myflashlab.air.extensions.firebase.mlkit

ON_CLOUDConstant 
public static const ON_CLOUD:int = 1

ON_DEVICEConstant 
public static const ON_DEVICE:int = 0

VERSIONConstant 
public static const VERSION:String = 8.0.1