Interface GeolocationTrackerSession
public interface GeolocationTrackerSession
View into a tracker session managed by the simulator. Returned by
GeolocationSimulator.activeTrackers().- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisActive()Whether the tracker is currently receiving updates.@Nullable GeolocationOptionsoptions()Options the tracker was started with, ornull.owner()The component that owns this tracker session.
-
Method Details
-
owner
Component owner()The component that owns this tracker session.- Returns:
- the component that started tracking
-
options
@Nullable GeolocationOptions options()Options the tracker was started with, ornull.- Returns:
- the options tracking was started with
-
isActive
boolean isActive()Whether the tracker is currently receiving updates.- Returns:
truewhile the session is still tracking
-