Method
XdpPortallocation_monitor_start
Declaration [src]
void
xdp_portal_location_monitor_start (
  XdpPortal* portal,
  XdpParent* parent,
  guint distance_threshold,
  guint time_threshold,
  XdpLocationAccuracy accuracy,
  XdpLocationMonitorFlags flags,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer data
)
Description [src]
Makes XdpPortal start monitoring location changes.
When the location changes, the XdpPortal::location-updated.
signal is emitted.
Use xdp_portal_location_monitor_stop() to stop monitoring.
Note that XdpPortal only maintains a single location monitor
at a time. If you want to change the distance_threshold,
time_threshold or accuracy of the current monitor, you
first have to call xdp_portal_location_monitor_stop() to
stop monitoring.
This method completes asynchronously. Use xdp_portal_location_monitor_start_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
- parent
- 
            Type: XdpParentA XdpParent, orNULL.The argument can be NULL.The data is owned by the caller of the method. 
- distance_threshold
- 
            Type: guintDistance threshold, in meters. 
- time_threshold
- 
            Type: guintTime threshold, in seconds. 
- accuracy
- 
            Type: XdpLocationAccuracyDesired accuracy. 
- flags
- 
            Type: XdpLocationMonitorFlagsOptions for this call. 
- cancellable
- 
            Type: GCancellableOptional GCancellable.The argument can be NULL.The data is owned by the caller of the method. 
- callback
- 
            Type: GAsyncReadyCallbackA callback to call when the request is done. The argument can be NULL.
- data
- 
            Type: gpointerData to pass to callback.The argument can be NULL.The data is owned by the caller of the method.