Class Simple

All Implemented Interfaces:
PointerInterface

public class Simple extends Object
  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • newFinishSimple

      public static Simple newFinishSimple(@Nonnull AsyncResult result) throws AllocationError
      Finishes an operation started with #gclue_simple_new().
      Parameters:
      result - The #GAsyncResult obtained from the #GAsyncReadyCallback passed to #gclue_simple_new().
      Returns:
      The constructed proxy object or %NULL if @error is set.
      Throws:
      AllocationError
    • newSyncSimple

      public static Simple newSyncSimple(@Nonnull Str desktop_id, int accuracy_level, @Nullable Cancellable cancellable) throws AllocationError
      The synchronous and blocking version of #gclue_simple_new().
      Parameters:
      desktop_id - The desktop file id (the basename of the desktop file).
      accuracy_level - The requested accuracy level as #GClueAccuracyLevel.
      cancellable - A #GCancellable or %NULL.
      Returns:
      The new #GClueSimple object or %NULL if @error is set.
      Throws:
      AllocationError
    • newSyncSimple

      public static Simple newSyncSimple(String desktop_id, int accuracy_level, @Nullable Cancellable cancellable) throws AllocationError
      The synchronous and blocking version of #gclue_simple_new().
      Parameters:
      desktop_id - The desktop file id (the basename of the desktop file).
      accuracy_level - The requested accuracy level as #GClueAccuracyLevel.
      cancellable - A #GCancellable or %NULL.
      Returns:
      The new #GClueSimple object or %NULL if @error is set.
      Throws:
      AllocationError
    • newWithThresholdsFinishSimple

      public static Simple newWithThresholdsFinishSimple(@Nonnull AsyncResult result) throws AllocationError
      Finishes an operation started with #gclue_simple_new_with_thresholds().
      Parameters:
      result - The #GAsyncResult obtained from the #GAsyncReadyCallback passed to #gclue_simple_new_with_thresholds().
      Returns:
      The constructed proxy object or %NULL if @error is set.
      Throws:
      AllocationError
    • newWithThresholdsSyncSimple

      public static Simple newWithThresholdsSyncSimple(@Nonnull Str desktop_id, int accuracy_level, int time_threshold, int distance_threshold, @Nullable Cancellable cancellable) throws AllocationError
      The synchronous and blocking version of #gclue_simple_new_with_thresholds().
      Parameters:
      desktop_id - The desktop file id (the basename of the desktop file).
      accuracy_level - The requested accuracy level as #GClueAccuracyLevel.
      time_threshold - Time threshold in seconds, 0 for no limit.
      distance_threshold - Distance threshold in meters, 0 for no limit.
      cancellable - A #GCancellable or %NULL.
      Returns:
      The new #GClueSimple object or %NULL if @error is set.
      Throws:
      AllocationError
    • newWithThresholdsSyncSimple

      public static Simple newWithThresholdsSyncSimple(String desktop_id, int accuracy_level, int time_threshold, int distance_threshold, @Nullable Cancellable cancellable) throws AllocationError
      The synchronous and blocking version of #gclue_simple_new_with_thresholds().
      Parameters:
      desktop_id - The desktop file id (the basename of the desktop file).
      accuracy_level - The requested accuracy level as #GClueAccuracyLevel.
      time_threshold - Time threshold in seconds, 0 for no limit.
      distance_threshold - Distance threshold in meters, 0 for no limit.
      cancellable - A #GCancellable or %NULL.
      Returns:
      The new #GClueSimple object or %NULL if @error is set.
      Throws:
      AllocationError
    • getClient

      public ClientProxy getClient()
      Gets the client proxy, or %NULL if @simple is not using a client proxy (i-e
      when inside the Flatpak sandbox).
      Returns:
      The client object.
    • getLocation

      public Location getLocation()
      Gets the current location.
      Returns:
      The last known location as #GClueLocation.
    • _new

      public static void _new(@Nonnull Str desktop_id, int accuracy_level, @Nullable Cancellable cancellable, Simple.OnAsyncReadyCallback callback, @Nullable Pointer user_data)
      Asynchronously creates a #GClueSimple instance. Use
      #gclue_simple_new_finish() to get the created #GClueSimple instance.

      See #gclue_simple_new_sync() for the synchronous, blocking version
      of this function.
      Parameters:
      desktop_id - The desktop file id (the basename of the desktop file).
      accuracy_level - The requested accuracy level as #GClueAccuracyLevel.
      cancellable - A #GCancellable or %NULL.
      callback - A #GAsyncReadyCallback to call when the results are ready.
      user_data - User data to pass to @callback.
    • newWithThresholds

      public static void newWithThresholds(@Nonnull Str desktop_id, int accuracy_level, int time_threshold, int distance_threshold, @Nullable Cancellable cancellable, Simple.OnAsyncReadyCallback callback, @Nullable Pointer user_data)
      Asynchronously creates a #GClueSimple instance. Use
      #gclue_simple_new_with_thresholds_finish() to get the created #GClueSimple instance.

      See #gclue_simple_new_with_thresholds_sync() for the synchronous,
      blocking version of this function.
      Parameters:
      desktop_id - The desktop file id (the basename of the desktop file).
      accuracy_level - The requested accuracy level as #GClueAccuracyLevel.
      time_threshold - Time threshold in seconds, 0 for no limit.
      distance_threshold - Distance threshold in meters, 0 for no limit.
      cancellable - A #GCancellable or %NULL.
      callback - A #GAsyncReadyCallback to call when the results are ready.
      user_data - User data to pass to @callback.
    • asAsyncInitable

      public AsyncInitable asAsyncInitable()
      Implements interface AsyncInitable. Call this to get access to interface functions.
      Returns:
      AsyncInitable
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()