Protocol
| ZegoEffectsEventHandler |
ZegoEffectsEventHandler
Callback function
Details
Containing AI Effect callback functions.
Declared in ZegoEffectsEventHandler.h
Methods
effects:errcode:desc:
effects:errcode:desc:
- (void)effects:(ZegoEffects) effects errorCode:(int) errorCode desc:(NSString *) desc;The callback for obtaining error information.
Declared in
ZegoEffectsEventHandler.hParameters
| Name | Type | Description |
|---|---|---|
| effects | ZegoEffects | [in/out] The handle of the instance. |
| errorCode | int | Engine error code. |
| desc | NSString * | Engine error code description. |
Details
When the SDK functions are not used correctly, the callback prompts for detailed error information.
facedetectionresults:effects:
facedetectionresults:effects:
- (void)facedetectionresults:(ZegoEffects) effects results:(NSArray<ZegoEffectsFaceDetectionResult *> *) results;Face detection callback.
Declared in
ZegoEffectsEventHandler.hParameters
| Name | Type | Description |
|---|---|---|
| effects | ZegoEffects | [in/out] The handle of the instance. |
| results | NSArray<ZegoEffectsFaceDetectionResult *> * | Face result. |
Details
The developer can start face detection through [EnableFacedetection], and the SDK will return the detected face data through this callback.
