### Interface

# Phosh GeoClueDBusOrgFreedesktopGeoClue2Agent

since: 0

#### Description [src]

    interface Phosh.GeoClueDBusOrgFreedesktopGeoClue2Agent : GObject.Object

Abstract interface type for the D-Bus interface org.freedesktop.GeoClue2.Agent.

Available since: 0

#### Prerequisite

In order to implement GeoClueDBusOrgFreedesktopGeoClue2Agent, your type must inherit from`GObject`.

#### Implementations

- PhoshGeoClueDBusOrgFreedesktopGeoClue2AgentProxy
- PhoshGeoClueDBusOrgFreedesktopGeoClue2AgentSkeleton
- PhoshLocationManager

#### Functions

###### phosh_geo_clue_dbus_org_freedesktop_geo_clue2_agent_interface_info

Gets a machine-readable description of the org.freedesktop.GeoClue2.Agent D-Bus interface.

since: 0

###### phosh_geo_clue_dbus_org_freedesktop_geo_clue2_agent_override_properties

Overrides all `GObject` properties in the `PhoshGeoClueDBusOrgFreedesktopGeoClue2Agent` interface for a concrete class. The properties are overridden in the order they are defined.

since: 0

#### Instance methods

###### phosh_geo_clue_dbus_org_freedesktop_geo_clue2_agent_call_authorize_app

Asynchronously invokes the AuthorizeApp() D-Bus method on `proxy`. When the operation is finished, `callback` will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). You can then call `phosh_geo_clue_dbus_org_freedesktop_geo_clue2_agent_call_authorize_app_finish()` to get the result of the operation.

since: 0

###### phosh_geo_clue_dbus_org_freedesktop_geo_clue2_agent_call_authorize_app_finish

Finishes an operation started with phosh_geo_clue_dbus_org_freedesktop_geo_clue2_agent_call_authorize_app().

since: 0

###### phosh_geo_clue_dbus_org_freedesktop_geo_clue2_agent_call_authorize_app_sync

Synchronously invokes the AuthorizeApp() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.

since: 0

###### phosh_geo_clue_dbus_org_freedesktop_geo_clue2_agent_complete_authorize_app

Helper function used in service implementations to finish handling invocations of the AuthorizeApp() D-Bus method. If you instead want to finish handling an invocation by returning an error, use `g_dbus_method_invocation_return_error()` or similar.

since: 0

###### phosh_geo_clue_dbus_org_freedesktop_geo_clue2_agent_get_max_accuracy_level

Gets the value of the “MaxAccuracyLevel” D-Bus property.

since: 0

###### phosh_geo_clue_dbus_org_freedesktop_geo_clue2_agent_set_max_accuracy_level

Sets the “MaxAccuracyLevel” D-Bus property to `value`.

since: 0

#### Properties

###### Phosh.GeoClueDBusOrgFreedesktopGeoClue2Agent:max-accuracy-level

Represents the D-Bus property “MaxAccuracyLevel”.

since: 0

#### Signals

###### Phosh.GeoClueDBusOrgFreedesktopGeoClue2Agent::handle-authorize-app

Signal emitted when a remote caller is invoking the AuthorizeApp() D-Bus method.

since: 0

#### Interface structure

    struct PhoshGeoClueDBusOrgFreedesktopGeoClue2AgentIface {
      GTypeInterface parent_iface;
      gboolean (* handle_authorize_app) (
        PhoshGeoClueDBusOrgFreedesktopGeoClue2Agent* object,
        GDBusMethodInvocation* invocation,
        const gchar* arg_desktop_id,
        guint arg_req_accuracy_level
      );
      guint (* get_max_accuracy_level) (
        PhoshGeoClueDBusOrgFreedesktopGeoClue2Agent* object
      );

    }

Virtual table for the D-Bus interface org.freedesktop.GeoClue2.Agent.

###### Interface members

`parent_iface`

    GTypeInterface

| The parent interface.

`handle_authorize_app`

    gboolean (* handle_authorize_app) (
        PhoshGeoClueDBusOrgFreedesktopGeoClue2Agent* object,
        GDBusMethodInvocation* invocation,
        const gchar* arg_desktop_id,
        guint arg_req_accuracy_level
      )

| Handler for the `PhoshGeoClueDBusOrgFreedesktopGeoClue2Agent::handle-authorize-app` signal.

`get_max_accuracy_level`

    guint (* get_max_accuracy_level) (
        PhoshGeoClueDBusOrgFreedesktopGeoClue2Agent* object
      )

| Getter for the `PhoshGeoClueDBusOrgFreedesktopGeoClue2Agent:max-accuracy-level` property.

#### Virtual methods

###### Phosh.GeoClueDBusOrgFreedesktopGeoClue2Agent.get_max_accuracy_level

Gets the value of the “MaxAccuracyLevel” D-Bus property.

since: 0

###### Phosh.GeoClueDBusOrgFreedesktopGeoClue2Agent.handle_authorize_app

Handler for the `PhoshGeoClueDBusOrgFreedesktopGeoClue2Agent::handle-authorize-app` signal.

since: 0