setLocationUpdateInterval method

  1. @override
void setLocationUpdateInterval(
  1. int interval
)
override

Method is used to change interval in seconds check for new version from server Default: 300s interval update interval in seconds

Example:

// Set location update interval (in seconds)
_locationManager!.setLocationUpdateInterval(600); // 10 minutes

Implementation

@override
void setLocationUpdateInterval(int interval) {
    final _setLocationUpdateIntervalFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Void Function(Pointer<Void>, Int32),
        void Function(Pointer<Void>, int)
      >('navigine_sdk_flutter_LocationManager_setLocationUpdateInterval__Interval'));
    final _intervalHandle = navigine_sdk_flutter_int_ToFfi(interval);
    final _handle = this.handle;
    _setLocationUpdateIntervalFfi(_handle, _intervalHandle);
    navigine_sdk_flutter_int_ReleaseFfiHandle(_intervalHandle);
}