LocationService

interface LocationService

The entry point of the platform location services.

Functions

Link copied to clipboard

Gets a current accuracy authorization of the app

Link copied to clipboard

Gets an instance of DeviceLocationProvider. In case user defined factory was set by setUserDefinedDeviceLocationProviderFactory it will be asked to provide an instance.

Link copied to clipboard

Gets a current status of location permission of the app.

Link copied to clipboard
abstract fun isAvailable(): Boolean

Check if the platform location service is available

Link copied to clipboard

Registers an observer. LocationService can have more than one observer.

Set factory to build user defined DeviceLocationProvider. When set, this factory will intercept all getDeviceLocationProvider calls to provide an instance of a DeviceLocationProvider.

Link copied to clipboard

Removes observer. If the observer is not registered, this is no-op.