HostCameraMessageHandler class
Callback handler for camera-level events from the platform host.
- Annotations
Constructors
-
HostCameraMessageHandler(int cameraId, StreamController<
CameraEvent> streamController) - Creates a new handler that listens for events from camera cameraId, and broadcasts them to streamController.
Properties
- cameraId → int
-
The camera ID this handler listens for events from.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
streamController
→ StreamController<
CameraEvent> -
The controller used to broadcast camera events coming from the
host platform.
final
Methods
-
dispose(
) → void - Removes the handler for native messages.
-
error(
String message) → void - Called when an error occurs in the camera.
-
initialized(
PlatformCameraState initialState) → void - Called when the camera is inialitized for use.
-
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