getHasVideo method

Future<bool?> getHasVideo()

Obtain whether to temporarily video Only supports ios

Implementation

Future<bool?> getHasVideo() async {
  if (!value.isInitialized! || _isDisposed) {
    throw CameraException(
      'Uninitialized CameraController',
      'getHasVideo was called on uninitialized CameraController',
    );
  }
  if (!Platform.isIOS) {
    throw CameraException(
      'Unsupported platforms.',
      'getHasVideo Only supports Ios.',
    );
  }
  try {
    return await _channel.invokeMethod<bool>(
      'getHasVideo',
      <String, dynamic>{},
    );
  } on PlatformException catch (e) {
    throw CameraException(e.code, e.message);
  }
}