setLocationUpdateInterval method

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

@endcond

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

Dart code snippet: @snippet location_manager_example.dart dart_LocationManager_setLocationUpdateInterval

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);
}