toggle menu
OMH Maps
androidJvm
switch theme
search in API
core
/
com.openmobilehub.android.maps.core.utils.location
/
LastLocationService
Last
Location
Service
class
LastLocationService
(
locationManager
:
LocationManager
,
providers
:
List
<
String
>
)
Members
Constructors
Last
Location
Service
Link copied to clipboard
constructor
(
locationManager
:
LocationManager
,
providers
:
List
<
String
>
)
Functions
get
Last
Location
Link copied to clipboard
@
RequiresPermission
(
anyOf
=
[
"android.permission.ACCESS_COARSE_LOCATION"
,
"android.permission.ACCESS_FINE_LOCATION"
]
)
fun
getLastLocation
(
onSuccess
:
(
OmhCoordinate
)
->
Unit
,
onFailure
:
(
Exception
)
->
Unit
)