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​
| Parameter | Type |
|---|---|
processor | CameraFrameProcessor |
callback | CameraFrameCallback |
Returns​
Promise<CameraFrameSubscription>