getAuthMessage method
@detail api @author zhushufan.ref @brief Get authorization messages from the Effect SDK for the online license. @param ppmsg Authorization message string address @return - 0: Success. - –1000: The Effects SDK is not integrated. - –1001: This API is unavailable for your Effects SDK. - –1002: Your Effects SDK's version is incompatible. - < 0: Other error. See Error Code Table for specific instructions. @note - You must get an online license for the Effect SDK before using the CV functions. - After getting authorization messages with this API, implement the code of getting the online license with Online License Guide. Then call initCVResource:withAlgoModelDir:{@link #ByteRTCVideoEffect#initCVResource:withAlgoModelDir} to validate the license. After that, you can use the CV function.
Implementation
FutureOr<int> getAuthMessage(NSString ppmsg) async {
return await nativeCall('getAuthMessage:', [ppmsg]);
}