The OrangeHelper class encapsulates the OrangeHelper SDK API. APIs provided by this class can satisfy the entire OrangeFilter SDK rendering process.
All OrangeHelper class APIs need to be called in the rendering thread; for interaction with other threads, call back to the existing rendering thread.
API | Description |
---|---|
createContext | Initialize an SDK context |
destroyContext | Destroy an SDK context |
isContextValid | Availability of Orange beautification SDK |
enableEffect | Enable/Disable the effect (effect package loads automatically the first time this API is called) |
releaseEffect | Disable the effect and free its memory |
enableGesture | Enable/Disable the gesture effect (effect package loads automatically the first time this API is called) |
releaseGesture | Disable the gesture effect package and free its memory |
enableSticker | Enable/Disable the sticker effect (effect package loads automatically the first time this API is called) |
releaseSticker | Disable the sticker effect package and free its memory |
getEffectParam | Obtain an effect parameter |
setEffectParam | Set an effect parameter |
getEffectParamDetail | Get the effect parameter's scope and default value |
updateFrameParams | Frame-rendering effect callback |
checkStickerResult | Check returns for stickers |
setLogLevel | Set a log level |
setLogCallback | Redirect the log output |