| java.lang.Object | |
| ↳ | com.steerpath.sdk.location.FakeLocationSource |
LocationSource that publishes "fake location updates" once per second. Created by opiirone on 15/05/2018.
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.steerpath.sdk.location.LocationSource
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| FakeLocationSource() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
activate(LocationSource.OnLocationChangedListener listener)
Starts publishing location updates.
| ||||||||||
| void |
deactivate()
Stops publishing location updates.
| ||||||||||
| void |
removeUpdates(LocationListener listener)
Unregister LocationListener.
| ||||||||||
| void |
requestLocationUpdates(LocationListener listener)
Register LocationListener for location updates.
| ||||||||||
| void |
setLocation(Location location)
Update current fake location.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.steerpath.sdk.location.LocationSource
| |||||||||||
Starts publishing location updates. Usually app has no need to use this; method is called internally by the SDK.
Stops publishing location updates. Usually app has no need to use this; method is called internally by the SDK.
Unregister LocationListener. Usually app has no need to use this; method is called internally by the SDK.
Register LocationListener for location updates. Usually app has no need to use this; method is called internally by the SDK.
Update current fake location. This location will be published once per second through OnLocationChangedListener and LocationListeners.