getGeopositionHistoryWithDurationAsync static method

Future<List<Geoposition>> getGeopositionHistoryWithDurationAsync(
  1. DateTime startTime,
  2. Duration duration
)

Implementation

static Future<List<Geoposition>> getGeopositionHistoryWithDurationAsync(
    DateTime startTime, Duration duration) {
  final activationFactoryPtr =
      CreateActivationFactory(_className, IID_IGeolocatorStatics);
  final object = IGeolocatorStatics.fromRawPointer(activationFactoryPtr);

  try {
    return object.getGeopositionHistoryWithDurationAsync(startTime, duration);
  } finally {
    object.release();
  }
}