Interface GeolocationClient.WatchHandle

All Superinterfaces:
Serializable
Enclosing interface:
GeolocationClient

public static interface GeolocationClient.WatchHandle extends Serializable
Handle to a watch session. The handle is alive while the underlying watch is active; calling stop() idempotently tears it down.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether the watch is currently active (has not yet been stopped or auto-cancelled).
    void
    Stops the underlying watch.
  • 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:
      true if the watch is still receiving updates