MyCameraController class
Controller for a single GoogleMap instance running on the host platform.
Properties
- cameraaccessdenied → String
-
final
- channel → MethodChannel
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
captureImage(
{int? maxSize}) → Future< void> - called when capture the image
-
generateBarCode(
String code) → Future< Uint8List> - Generating Bar Code Uint8List
-
getFlashType(
) → Future< List< FlashType> > - get the flash type
-
getPictureSizes(
) → Future< List< String> ?> - get the picture size
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scan(
) → Future< String> -
scanBytes(
Uint8List uint8list) → Future< String> - Parse to code string with uint8list
-
scanPath(
String path) → Future< String> - Scanning the image of the specified path
-
scanPhoto(
) → Future< String> - Scanning Photo Bar Code or QR Code return content
-
setFlashType(
FlashType flashType) → Future< void> - set the flash light type is auto, on, off, torch
-
setPictureSize(
int width, int height) → Future< void> - set the size of the picture
-
setPreviewRatio(
CameraPreviewRatio cameraPreviewRatio) → Future< void> - set the preview ratio of camera
-
setSavePath(
String savePath) → Future< void> - save the path
-
setSessionPreset(
dynamic cameraSessionPreset) → Future< void> - set the the session preset
-
switchCamera(
) → Future< void> - called when switch the camera
-
toString(
) → String -
A string representation of this object.
inherited
-
turnOffCamera(
) → Future< void> - turn off the camera
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
init(
int id, _MyCameraState myCameraState) → Future< MyCameraController>