Class: DebouncedCameraStopEventTrigger
Simple helper class to trigger a stop event whenever a camera manager's camera hasn't changed for a little while.
Constructors
new DebouncedCameraStopEventTrigger()
new DebouncedCameraStopEventTrigger(
cameraManager
,debounceTimeMs
):DebouncedCameraStopEventTrigger
Parameters
• cameraManager: CameraManager
• debounceTimeMs: number
= 100
Returns
DebouncedCameraStopEventTrigger
Defined in
packages/camera-manager/src/utils/DebouncedCameraStopEventTrigger.ts:21
Methods
dispose()
dispose():
void
Deallocate resources associated with this object
Returns
void
Defined in
packages/camera-manager/src/utils/DebouncedCameraStopEventTrigger.ts:45
subscribe()
subscribe(
callback
):void
Subscribe to the stop events generated by this trigger
Parameters
• callback: CameraStopDelegate
Returns
void
Defined in
packages/camera-manager/src/utils/DebouncedCameraStopEventTrigger.ts:31
unsubscribe()
unsubscribe(
callback
):void
Unsubscribe from the stop events
Parameters
• callback: CameraStopDelegate
Returns
void
Defined in
packages/camera-manager/src/utils/DebouncedCameraStopEventTrigger.ts:38