Skip to main content
Version: 0.31.0

Function: attachCameraFrameCallback()

attachCameraFrameCallback(processor, callback): Promise<CameraFrameSubscription>

Defined in: index.ts:127

Starts calling callback on the camera frame runtime for every frame the processor's track captures. Each processor can have one callback at a time; remove the previous subscription before attaching another to the same processor. Different processors may each have their own.

Parameters​

ParameterType
processorCameraFrameProcessor
callbackCameraFrameCallback

Returns​

Promise<CameraFrameSubscription>