提交工单
咨询集成、功能及报价等问题
The ZegoEffects SDK provides various fun and interesting face stickers. With accurate facial keypoint detection and tracking, the stickers can be applied seamlessly to the face and special effects can be triggered by facial movements.
Before you begin to use the SDK's stickers in your project, make sure you complete the following steps:
PendantResources.bundle
. For details, see Import resourcesThe SDK provides different types of stickers, including Animal, Clown, Deer, Dive, Facefilm, Girl, Rabbit, Watermelon, and more. You can choose to use any stickers as needed by specifying the corresponding sticker resource.
To use the sticker feature, import the resource file PendantResources
first; otherwise, this feature can't take effect. For details, see Import resources and models.
setPendant
method with the path of the sticker resource passed to the path
parameter.setPendant
method with the path
parameter set to nil
.// Apply a sticker.
[effects setPendant:@"/xxx/xxx/pendantBaby.bundle"];
// Remove a sticker.
[effects setPendant:nil];