isCameraFocusPositionSupported method
@detail api @author zhangzhenyu.samuel @brief 检查当前使用的摄像头是否支持手动对焦。 @return - true: 支持。 - false: 不支持。 @note 必须已调用 startVideoCapture{@link #RTCEngine#startVideoCapture} 使用 SDK 内部采集模块进行视频采集,才能检查摄像头是否支持手动对焦。
Implementation
Future<bool?> isCameraFocusPositionSupported() async {
$a() => ($instance as $p_a.RTCEngine).isCameraFocusPositionSupported();
$i() => ($instance as $p_i.ByteRTCEngine).isCameraFocusPositionSupported();
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}