Interface GeolocationClient.WatchHandle
- All Superinterfaces:
Serializable
- Enclosing interface:
GeolocationClient
Handle to a watch session. The handle is alive while the underlying watch
is active; calling
stop() idempotently tears it down.-
Method Summary
-
Method Details
-
stop
void stop()Stops the underlying watch. Idempotent: calling more than once is a no-op. -
isActive
boolean isActive()Returns whether the watch is currently active (has not yet been stopped or auto-cancelled).- Returns:
trueif the watch is still receiving updates
-