CamerawesomePlugin class

Constructors

CamerawesomePlugin()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

currentState CameraState
getter/setter pair

Static Methods

checkAndRequestPermissions() Future<bool?>
checkAndroidPermissions() Future<List<String>>
checkiOSPermissions() Future<bool?>
checkPermissions() Future<bool>
returns true if all permissions are granted
focus() Future<bool?>
getEffectivPreviewSize() Future<Size>
android has a limits on preview size and fallback to 1920x1080 if preview is too big So to prevent having different ratio we get the real preview Size directly from nativ side
getMaxZoom() Future<num?>
returns the max zoom available on device
getNativeOrientation() Stream<CameraOrientations?>
getPreviewTexture() Future<num?>
getSizes() Future<List<Size>>
init(Sensors sensor, bool enableImageStream, {CaptureModes captureMode = CaptureModes.PHOTO}) Future<bool?>
listenCameraImages() Stream<Uint8List>?
listenLuminosityLevel() Stream<SensorData>?
listenPermissionResult() Stream<bool>?
recordVideo(String path) → dynamic
refresh() Future<void>
requestPermissions() Future<List<String>?>
only available on Android
setAudioMode(bool enableAudio) Future<void>
enable audio mode recording or not
setBrightness(double brightness) Future<void>
set brightness manually with range 0,1
setCaptureMode(CaptureModes captureMode) Future<void>
change capture mode between CaptureModes.PHOTO and CaptureModes.VIDEO
setFlashMode(CameraFlashes flashMode) Future<void>
Switch flash mode from Android / iOS
setPhotoSize(int width, int height) Future<void>
Just for android you can set a different size for preview and for photo
setPreviewSize(int width, int height) Future<void>
setSensor(Sensors sensor) Future<void>
switch camera sensor between Sensors.BACK and Sensors.FRONT
setZoom(num zoom) Future<void>
calls zoom from Android / iOS --
start() Future<bool>
startAutoFocus() → dynamic
TODO - Next step focus on a certain point
stop() Future<bool>
stopRecordingVideo() → dynamic
takePhoto(String path) → dynamic