CameraOwnershipHelper class

Annotations
  • @experimental

Constructors

CameraOwnershipHelper()

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 Methods

getAllOwnedPositions(CameraOwner owner) List<CameraPosition>
Get all camera positions currently owned by the owner
getCamera(CameraPosition position, CameraOwner owner) Camera?
Get camera instance for the owner (only works if you own it)
getOwnedPosition(CameraOwner owner) CameraPosition?
Get the camera position currently owned by the owner (if any)
hasOwnership(CameraPosition position, CameraOwner owner) bool
Check if owner has ownership
releaseAllOwnerships(CameraOwner owner) → void
Release ownership of all cameras owned by the owner
releaseOwnership(CameraPosition position, CameraOwner owner) bool
Release ownership
requestOwnership(CameraPosition position, CameraOwner owner, [int? timeoutMs]) Future<bool>
Request ownership and wait if necessary
withCamera<T>(CameraPosition position, CameraOwner owner, Future<T> operation(Camera camera)) Future<T?>
Safely execute camera operations (only works if you own the camera)
withCameraSync<T>(CameraPosition position, CameraOwner owner, T operation(Camera camera)) → T?
Safely execute camera operations (synchronous version)
withCameraWhenAvailable<T>(CameraPosition position, CameraOwner owner, Future<T> operation(Camera camera), [int? timeoutMs]) Future<T?>
Execute camera operations, waiting for ownership if necessary
withCameraWhenAvailableSync<T>(CameraPosition position, CameraOwner owner, T operation(Camera camera), [int? timeoutMs]) Future<T?>
Execute camera operations, waiting for ownership if necessary (synchronous version)