toggle menu
NavigationApp
androidJvm
switch theme
search in API
navigation-ux-location
/
com.mapbox.dash.location
/
GpsLocationProvider
Gps
Location
Provider
@
RestrictTo
(
value
=
[
RestrictTo.Scope.LIBRARY_GROUP_PREFIX
]
)
class
GpsLocationProvider
@
VisibleForTesting
constructor
(
locationManager
:
LocationManager
,
interval
:
Long
,
displacement
:
Float
)
:
DeviceLocationProvider
Members
Constructors
Gps
Location
Provider
Link copied to clipboard
constructor
(
context
:
Context
,
request
:
LocationProviderRequest
?
)
@
VisibleForTesting
constructor
(
locationManager
:
LocationManager
,
interval
:
Long
,
displacement
:
Float
)
Functions
add
Location
Observer
Link copied to clipboard
open
override
fun
addLocationObserver
(
observer
:
LocationObserver
)
open
override
fun
addLocationObserver
(
observer
:
LocationObserver
,
looper
:
Looper
)
get
Last
Location
Link copied to clipboard
open
override
fun
getLastLocation
(
callback
:
GetLocationCallback
)
:
Cancelable
get
Name
Link copied to clipboard
open
fun
getName
(
)
:
String
?
remove
Location
Observer
Link copied to clipboard
open
override
fun
removeLocationObserver
(
observer
:
LocationObserver
)
remove
Location
Updates
Link copied to clipboard
open
override
fun
removeLocationUpdates
(
pendingIntent
:
PendingIntent
)
request
Location
Updates
Link copied to clipboard
open
override
fun
requestLocationUpdates
(
pendingIntent
:
PendingIntent
)