public interface LocationManager
requestLocationUpdates(LocationRequest, LocationListener)
passing the LocationRequest
object. If you use a location request with buildingIdentifier
the positioning will start in indoor only mode. If you don't specify buildingIdentifier the positioning
will start in indoor-outdoor mode. In the indoor-outdoor mode the permission ACCESS_FINE_LOCATION is required.
SitumSdk.init(Context)
must be called before using any of this class methods.
LocationRequest
,
Location
,
LocationListener
Modifier and Type | Interface and Description |
---|---|
static interface |
LocationManager.Code
The error codes received in
Handler.onFailure(Error) on the LocationManager |
static interface |
LocationManager.PropertyKey |
Modifier and Type | Method and Description |
---|---|
boolean |
isRunning()
Return true if
requestLocationUpdates(LocationRequest, LocationListener) was called and
positioning is running |
void |
removeUpdates(LocationListener locationListener)
Removes all location updates for the given LocationListener.
|
void |
requestLocationUpdates(LocationRequest locationRequest,
LocationListener locationListener)
Request location updates on the specified listener.
|
void requestLocationUpdates(LocationRequest locationRequest, LocationListener locationListener)
locationRequest
- the location requestlocationListener
- the listener to notify location updatesvoid removeUpdates(LocationListener locationListener)
locationListener
- the listener to removeboolean isRunning()
requestLocationUpdates(LocationRequest, LocationListener)
was called and
positioning is running