camera_platform_interface library
Expose XFile
Classes
- CameraClosingEvent
- An event fired when the camera is going to close.
- CameraDescription
- Properties of a camera device.
- CameraErrorEvent
- An event fired when an error occured while operating the camera.
- CameraEvent
- Generic Event coming from the native side of Camera, related to a specific camera module.
- CameraImageData
- A single complete image buffer from the platform camera.
- CameraImageFormat
- Describes how pixels are represented in an image.
- CameraImagePlane
- A single color plane of image data.
- CameraImageStreamOptions
- Options for configuring camera streaming.
- CameraInitializedEvent
- An event fired when the camera has finished initializing.
- CameraPlatform
- The interface that implementations of camera must implement.
- CameraResolutionChangedEvent
- An event fired when the resolution preset of the camera has changed.
- CrossFileTestOverrides
- Overrides some functions of CrossFile for testing purposes
- DeviceEvent
- Generic Event coming from the native side of Camera, not related to a specific camera module.
- DeviceOrientationChangedEvent
- The DeviceOrientationChangedEvent is fired every time the orientation of the device UI changes.
- MediaSettings
- Recording media settings.
- VideoCaptureOptions
- Options wrapper for CameraPlatform.startVideoCapturing parameters.
- VideoRecordedEvent
- An event fired when a video has finished recording.
- XFile
- A CrossFile is a cross-platform, simplified File abstraction.
Enums
- CameraLensDirection
- The direction the camera is facing.
- ExposureMode
- The possible exposure modes that can be set for a camera.
- FlashMode
- The possible flash modes that can be set for a camera
- FocusMode
- The possible focus modes that can be set for a camera.
- ImageFormatGroup
- Group of image formats that are comparable across Android and iOS platforms.
- ResolutionPreset
- Affect the quality of video recording and image capture:
Extensions
- ImageFormatGroupName on ImageFormatGroup
- Extension on ImageFormatGroup to stringify the enum
Functions
-
deserializeExposureMode(
String str) → ExposureMode - Returns the exposure mode for a given String.
-
deserializeFocusMode(
String str) → FocusMode - Returns the focus mode for a given String.
-
serializeExposureMode(
ExposureMode exposureMode) → String - Returns the exposure mode as a String.
-
serializeFocusMode(
FocusMode focusMode) → String - Returns the focus mode as a String.
Exceptions / Errors
- CameraException
- This is thrown when the plugin reports an error.