requestPermission static method

Future<UArPermissionState> requestPermission({
  1. bool location = false,
  2. bool microphone = false,
})

Implementation

static Future<UArPermissionState> requestPermission({bool location = false, bool microphone = false}) async {
  try {
    return UArPermissionState.fromMap(await UArChannel.invokeMap("requestPermission", <String, Object?>{"location": location, "microphone": microphone}) ?? const <Object?, Object?>{});
  } on UArException {
    return const UArPermissionState();
  }
}