このページは現在英語版のみで提供されており、日本語版も近日中に提供される予定です。ご利用いただきありがとうございます。

iOS

TUILiveKit offers two types of beauty effects: Basic Beauty and Advanced Beauty. If you are not satisfied with the results of Basic Beauty, you can choose to integrate Advanced Beauty to meet your more advanced beauty needs.

Basic Beauty

TUILiveKit comes with Basic Beauty functionality by default. Basic Beauty includes features such as skin whitening, skin smoothing, and adding a ruddy tint to the complexion. You can adjust the intensity of these beauty effects to meet different requirements. These features are already built-in within TUILiveKit, so there is no need for additional configuration or integration.

Panel Display





Advanced Beauty

TUILiveKit utilizes Tencent Effects Beauty for advanced beauty effects.

Effect Showcase

Chin slimming
Eye distance
Nose slimming
3D animated effects












Note:
The advanced beauty enhancement feature requires a separate fee. For more details, please refer to the Tencent Effects SDK.

Integration Guide

Step 1: Integrating TEBeautyKit

1. Download and extract TUILiveKit. Copy the iOS/TEBeautyKit folder to your project, at the same level as the Podfile folder.



2. Please edit the Podfile and add the following code:
pod 'TEBeautyKit',:podspec => './TEBeautyKit/TEBeautyKit.podspec'
3. Save the changes and run pod install in the terminal to install the tebeautykit dependency.

Step 2: Authorization & Setting Beauty Resources

1. Apply for authorization and obtain LicenseURL and LicenseKEY. Please refer to the License Guide for more information.
2. Set the URL and KEY in the initialization code of the relevant business module, and configure the beauty filter resources. For example, on iOS, you can set the relevant content in the didFinishLaunchingWithOptions method of AppDelegate.
//
// AppDelegate.swift
//
import TEBeautyKit
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
TEBeautyKit.setTELicense("LicenseURL", key: "LicenseKEY") { code, message in
TEUIConfig.shareInstance().setPanelLevel(.S1_07) // Replace S1_07 with the beauty package number you purchased.
}
return true
}
Note:
If you are unsure about the beauty package number, click here to view the overview of beauty package numbers.
By completing the aforementioned steps, you will have successfully integrated advanced beauty effects.