hasVideoPermissions method

Future<bool> hasVideoPermissions()

Returns true if camera permissions are already granted, without showing a dialog. Use this to decide whether to show a custom rationale UI before calling requestVideoPermissions.

Implementation

Future<bool> hasVideoPermissions() async {
  try {
    return await _coordinator.hostApi.hasVideoPermissions();
  } on PlatformException catch (e) {
    throw ChimePermissionException('Failed to check video permissions', e.message);
  }
}