CameraOwnershipExtensions extension

on
Annotations
  • @experimental

Properties

currentOwner CameraOwner?

Available on Camera, provided by the CameraOwnershipExtensions extension

Get the current owner of this camera
no setter

Methods

applySettingsProtected(CameraSettings settings, CameraOwner owner) Future<void>

Available on Camera, provided by the CameraOwnershipExtensions extension

Apply settings only if the owner has ownership
isOwnedBy(CameraOwner owner) bool

Available on Camera, provided by the CameraOwnershipExtensions extension

Check if the camera is owned by the specified owner
setDesiredTorchStateProtected(TorchState state, CameraOwner owner) → void

Available on Camera, provided by the CameraOwnershipExtensions extension

Set desired torch state only if the owner has ownership
switchToDesiredStateProtected(FrameSourceState state, CameraOwner owner) Future<void>

Available on Camera, provided by the CameraOwnershipExtensions extension

Switches the camera to the desired state with ownership protection.