Optional
onCalled whenever the face enters or exits the camera field of view.
NOTE: This callback is only called when the SDK does face tracking. For example, you laded some effect that uses face tracking (most of them do). But if no effect is loaded this callback will not get called because the SDK is not performing face tracking.
True if the face is visible on the camera, false otherwise.
Optional
onPasses the information about the detected faces. If this callback is set, it will get called every frame. NOTE: This callback is only called when the SDK does face tracking. For example, you laded some effect that uses face tracking (most of them do). But if no effect is loaded this callback will not get called because the SDK is not performing face tracking.
Information about all the tracked faces.
Optional
onCalled when segmentation is fully initialized. Be sure to check isSegmentationInitialized before setting this callback. Because this callback is called only once. So if you set this callback after the segmentation is initialized, it will not be called again.
Optional
onCalled when the animation player transitions to a new state.
Name of the new state that is being transitioned to.
Generated using TypeDoc
Callbacks from DeepAR notifying events. Register callbacks with callbacks.