LocationFromBuiltInGPS

A class that defines the interface for getting locations from the Built-In GPS

Constructors

Link copied to clipboard
constructor(_appContext: Context)

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 ACCESS_FINE_LOCATION and ACCESS_COARSE_LOCATION permissions for this Location Data Source. Optionally, the ACCESS_BACKGROUND_LOCATION permission may be required depending on the context of the application.

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

Specifies whether the built-In GPS is enabled.

Link copied to clipboard
@RequiresPermission(anyOf = ["android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION"])
open override fun lastKnownLocation(): Location?

Returns the last known location update.

Link copied to clipboard
open fun onCreate(owner: LifecycleOwner)
Link copied to clipboard
open fun onDestroy(owner: LifecycleOwner)
Link copied to clipboard
open fun onFlushComplete(p0: Int)
Link copied to clipboard

open override fun onLocationChanged(location: Location)

Called when the location has changed.

Link copied to clipboard
open fun onPause(owner: LifecycleOwner)
Link copied to clipboard
open override fun onProviderDisabled(provider: String)
Link copied to clipboard
open override fun onProviderEnabled(provider: String)
Link copied to clipboard
open fun onResume(owner: LifecycleOwner)
Link copied to clipboard
open fun onStart(owner: LifecycleOwner)
Link copied to clipboard
open override fun onStatusChanged(provider: String?, status: Int, extras: Bundle?)
Link copied to clipboard
open override fun onStop(owner: LifecycleOwner)
Link copied to clipboard
@RequiresPermission(anyOf = ["android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION"])
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