requestInstall static method

Future<UArAvailability> requestInstall()

Prompts for "Google Play Services for AR" on Android; no-op elsewhere.

Implementation

static Future<UArAvailability> requestInstall() async {
  try {
    return UArAvailability.fromMap(await UArChannel.invokeMap("requestInstall") ?? const <Object?, Object?>{});
  } on UArException catch (error) {
    return UArAvailability(status: UArAvailabilityStatus.unsupported, message: error.message);
  }
}