Skip to main content
Version: Next

Class: DebouncedCameraStopEventTrigger

Defined in: packages/camera-manager/src/utils/DebouncedCameraStopEventTrigger.ts:16

Simple helper class to trigger a stop event whenever a camera manager's camera hasn't changed for a little while.

Constructors

Constructor

new DebouncedCameraStopEventTrigger(cameraManager, debounceTimeMs): DebouncedCameraStopEventTrigger

Defined in: packages/camera-manager/src/utils/DebouncedCameraStopEventTrigger.ts:21

Parameters

cameraManager

CameraManager

debounceTimeMs

number = 100

Returns

DebouncedCameraStopEventTrigger

Methods

dispose()

dispose(): void

Defined in: packages/camera-manager/src/utils/DebouncedCameraStopEventTrigger.ts:45

Deallocate resources associated with this object

Returns

void


subscribe()

subscribe(callback): void

Defined in: packages/camera-manager/src/utils/DebouncedCameraStopEventTrigger.ts:31

Subscribe to the stop events generated by this trigger

Parameters

callback

CameraStopDelegate

Returns

void


unsubscribe()

unsubscribe(callback): void

Defined in: packages/camera-manager/src/utils/DebouncedCameraStopEventTrigger.ts:38

Unsubscribe from the stop events

Parameters

callback

CameraStopDelegate

Returns

void