LocationFromGPSData

A class that defines the interface for getting locations programmatically (see onLocationUpdated(@Nullable Location location) method which must be called at 1 Hz frequency).

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun dispose()

Call this method if you want to dispose immediately all underlying native resources

Link copied to clipboard
Link copied to clipboard

Returns the list of the required android permission(s) for this Location Data Source

Link copied to clipboard
open override fun isFeatureEnabled(): Boolean

Specifies whether the Location Data Source is enabled.

Link copied to clipboard
open override fun lastKnownLocation(): Location?

Returns the last known location update.

Link copied to clipboard
fun onLocationUpdated(location: Location?)

Must be called (at 1 Hz frequency) by the derived class whenever the last known location is updated or GPS signal has been lost.

Link copied to clipboard
open override fun start(): Boolean

Starts location updates from this Location Data Source

Link copied to clipboard
open override fun stop()

Stops location updates from this Location Data Source