Package org.webkitgtk
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theGeolocationManagerobject.onStart(GeolocationManager.StartCallback handler) The signal is emitted to notify thatmanagerneeds to start receiving position updates.onStop(GeolocationManager.StopCallback handler) The signal is emitted to notify thatmanagerdoesn't need to receive position updates anymore.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theGeolocationManagerobject. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])to create a new GObject instance, which is then cast toGeolocationManager.- Overrides:
buildin classGObject.Builder<B extends GeolocationManager.Builder<B>>- Returns:
- a new instance of
GeolocationManagerwith the properties that were set in the Builder object.
-
onStart
The signal is emitted to notify thatmanagerneeds 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
Builderinstance is returned, to allow method chaining - Since:
- 2.26
- See Also:
-
onStop
The signal is emitted to notify thatmanagerdoesn't need to receive position updates anymore.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.26
- See Also:
-