getFaceShapeBeautyOptions [1/2]
Gets the beauty effect options.
public abstract FaceShapeBeautyOptions getFaceShapeBeautyOptions(
Constants.MediaSourceType sourceType);
- Since
- v4.5.0
Calling this method can retrieve the current settings of the beauty effect.
Applicable scenarios
When the user opens the beauty style and style intensity menu in the app, you can call this method to get the current beauty effect options, then refresh the menu in the user interface according to the results, and update the UI.
Call timing
Call this method after calling enableVideo.
Restrictions
None.
Parameters
- sourceType
- The type of the media source to which the filter effect is applied. See MediaSourceType.Attention: In this method, this parameter supports only the following two settings:
- Use the default value PRIMARY_CAMERA_SOURCE if you use camera to capture local video.
- Set this parameter to CUSTOM_VIDEO_SOURCE if you use custom video source.
Returns
- A pointer to the FaceShapeBeautyOptions instance, if the method call succeeds.
- NULL is returned, if the method call fails.