requestPositionUpdate method

  1. @override
Future<bool> requestPositionUpdate(
  1. RequestSettings requestSettings
)
override

Request location change listen.

All position updates will send to getPositionStream stream.

The requestSettings parameter is used to configure the location update behavior and customer notification on Android. more detail see RequestSettings

Implementation

@override
Future<bool> requestPositionUpdate(RequestSettings requestSettings) async {
  try {
    return await methodChannel.invokeMethod(
        Methods.requestPositionUpdate, requestSettings.toMap());
  } on PlatformException catch (e) {
    final error = _handlePlatformException(e);
    throw error;
  }
}