Release Notes
Tencent Effect SDK V3.5 Version Released
Tencent Effects SDK V3.0 Version Related API and Material Changes
assets and the so file compressed package in jniLibs on your server, and then download and use them online. Copy xmagic-xxxx.aar under libs to the android/app/libs folder, and add api fileTree(dir: "libs", include: ['*.aar']) in dependencies of app/build.gradle
setLibPathAndLoad method of the TencentEffectApiAndroid object to load the SO./*** @param libPath is the folder path used to store the .so files, for example: xxx/xxx/arm64-v8a or xxx/xxx/armeabi-v7a.**/Future<bool> setLibPathAndLoad(String libPath);
TencentEffectApiAndroid object's addAiMode to copy the model files to a specified directory./*** @param inputDir The path of the folder to be copied, referring to the "Light3DPlugin", "LightCore", "LightHandPlugin", "LightBodyPlugin", "LightSegmentPlugin" folders.* @param resDir This path should be consistent with the path set by the setResourcePath method.* @param callBack Callback for the result of the copy, 0 indicates a successful copy.**/void addAiMode(String inputDir, String resDir, AddAiModeCallBack callBack) ;
resPath parameter.setResourcePath combined with the path specified in the json configuration. Therefore, when using the panel and dynamically downloading materials, it is necessary to download the materials to the path designated by setResourcePath + json configuration file.frameworks contains the SDK, while under resources, model refers to the model files, and motionRes encompasses materials for testing purposes.
xcframework from the frameworks folder into the actual project. Select the target you wish to run, navigate to the General section, and expand the Frameworks, Libraries, and Embedded Content section by clicking on it. Then, click the "+" icon below to add the necessary libraries.XMagic.xcframework, YTCommonXMagic.xcframework, libpag.xcframework, Audio2Exp.xcframework, TECodec.xcframeworkMetalPerformanceShaders.framework, CoreTelephony.framework, JavaScriptCore.framework, VideoToolbox.framework, libc++.tbdMasonry.framework (a layout library) and SSZipArchive (a file decompression library).
Document/Xmagic). By setting this path when using setResourcePath, the beautification features can utilize the downloaded model files upon initialization.resPath parameter with the material path.setResourcePath combined with the path configured in the json. Therefore, when using the panel and dynamically downloading materials, you need to download the materials to the path specified by setResourcePath + json configuration file.Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback