getFaceShapeAreaOptions abstract method
Future<FaceShapeAreaOptions>
getFaceShapeAreaOptions({
- required FaceShapeArea shapeArea,
- MediaSourceType type = MediaSourceType.primaryCameraSource,
Gets face shaping area options.
Call this method to get the current parameter settings of the face shaping area.
shapeAreaThe face shaping area. See FaceShapeArea.typeThe media source type to which the effect is applied. See MediaSourceType. In this method, this parameter only supports the following two settings: When using the camera to capture local video, keep the default value primaryCameraSource. To use custom captured video, set this parameter to customVideoSource.
Returns If the method call succeeds, returns a FaceShapeAreaOptions object; if it fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.
Implementation
Future<FaceShapeAreaOptions> getFaceShapeAreaOptions(
{required FaceShapeArea shapeArea,
MediaSourceType type = MediaSourceType.primaryCameraSource});