Class GeolocationManager.Builder<B extends GeolocationManager.Builder<B>>

java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.webkitgtk.GeolocationManager.Builder<B>
Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
GeolocationManager

public static class GeolocationManager.Builder<B extends GeolocationManager.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
Since:
2.26
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public GeolocationManager build()
      Finish building the GeolocationManager object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to GeolocationManager.
      Overrides:
      build in class GObject.Builder<B extends GeolocationManager.Builder<B>>
      Returns:
      a new instance of GeolocationManager with the properties that were set in the Builder object.
    • onStart

      public B onStart(GeolocationManager.StartCallback handler)

      The signal is emitted to notify that manager needs to start receiving position updates. After this signal is emitted the user should provide the updates using webkit_geolocation_manager_update_position() every time the position changes, or use webkit_geolocation_manager_failed() in case it isn't possible to determine the current position.

      If the signal is not handled, WebKit will try to determine the position using GeoClue if available.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.26
      See Also:
    • onStop

      public B onStop(GeolocationManager.StopCallback handler)
      The signal is emitted to notify that manager doesn't need to receive position updates anymore.
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.26
      See Also: