requestAccessAsync static method

Future<GeolocationAccessStatus> requestAccessAsync()

Implementation

static Future<GeolocationAccessStatus> requestAccessAsync() {
  final activationFactoryPtr =
      CreateActivationFactory(_className, IID_IGeolocatorStatics);
  final object = IGeolocatorStatics.fromRawPointer(activationFactoryPtr);

  try {
    return object.requestAccessAsync();
  } finally {
    object.release();
  }
}