### Interface

# Phosh DBusSensorProxy

#### Description [src]

    interface Phosh.DBusSensorProxy : GObject.Object

Abstract interface type for the D-Bus interface net.hadess.SensorProxy.

#### Prerequisite

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

#### Implementations

- PhoshDBusSensorProxyProxy
- PhoshDBusSensorProxySkeleton
- PhoshSensorProxyManager

#### Functions

###### phosh_dbus_sensor_proxy_interface_info

Gets a machine-readable description of the net.hadess.SensorProxy D-Bus interface.

###### phosh_dbus_sensor_proxy_override_properties

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

#### Instance methods

###### phosh_dbus_sensor_proxy_call_claim_accelerometer

Asynchronously invokes the ClaimAccelerometer() 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_dbus_sensor_proxy_call_claim_accelerometer_finish()` to get the result of the operation.

###### phosh_dbus_sensor_proxy_call_claim_accelerometer_finish

Finishes an operation started with phosh_dbus_sensor_proxy_call_claim_accelerometer().

###### phosh_dbus_sensor_proxy_call_claim_accelerometer_sync

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

###### phosh_dbus_sensor_proxy_call_claim_light

Asynchronously invokes the ClaimLight() 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_dbus_sensor_proxy_call_claim_light_finish()` to get the result of the operation.

###### phosh_dbus_sensor_proxy_call_claim_light_finish

Finishes an operation started with phosh_dbus_sensor_proxy_call_claim_light().

###### phosh_dbus_sensor_proxy_call_claim_light_sync

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

###### phosh_dbus_sensor_proxy_call_claim_proximity

Asynchronously invokes the ClaimProximity() 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_dbus_sensor_proxy_call_claim_proximity_finish()` to get the result of the operation.

###### phosh_dbus_sensor_proxy_call_claim_proximity_finish

Finishes an operation started with phosh_dbus_sensor_proxy_call_claim_proximity().

###### phosh_dbus_sensor_proxy_call_claim_proximity_sync

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

###### phosh_dbus_sensor_proxy_call_release_accelerometer

Asynchronously invokes the ReleaseAccelerometer() 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_dbus_sensor_proxy_call_release_accelerometer_finish()` to get the result of the operation.

###### phosh_dbus_sensor_proxy_call_release_accelerometer_finish

Finishes an operation started with phosh_dbus_sensor_proxy_call_release_accelerometer().

###### phosh_dbus_sensor_proxy_call_release_accelerometer_sync

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

###### phosh_dbus_sensor_proxy_call_release_light

Asynchronously invokes the ReleaseLight() 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_dbus_sensor_proxy_call_release_light_finish()` to get the result of the operation.

###### phosh_dbus_sensor_proxy_call_release_light_finish

Finishes an operation started with phosh_dbus_sensor_proxy_call_release_light().

###### phosh_dbus_sensor_proxy_call_release_light_sync

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

###### phosh_dbus_sensor_proxy_call_release_proximity

Asynchronously invokes the ReleaseProximity() 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_dbus_sensor_proxy_call_release_proximity_finish()` to get the result of the operation.

###### phosh_dbus_sensor_proxy_call_release_proximity_finish

Finishes an operation started with phosh_dbus_sensor_proxy_call_release_proximity().

###### phosh_dbus_sensor_proxy_call_release_proximity_sync

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

###### phosh_dbus_sensor_proxy_complete_claim_accelerometer

Helper function used in service implementations to finish handling invocations of the ClaimAccelerometer() 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.

###### phosh_dbus_sensor_proxy_complete_claim_light

Helper function used in service implementations to finish handling invocations of the ClaimLight() 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.

###### phosh_dbus_sensor_proxy_complete_claim_proximity

Helper function used in service implementations to finish handling invocations of the ClaimProximity() 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.

###### phosh_dbus_sensor_proxy_complete_release_accelerometer

Helper function used in service implementations to finish handling invocations of the ReleaseAccelerometer() 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.

###### phosh_dbus_sensor_proxy_complete_release_light

Helper function used in service implementations to finish handling invocations of the ReleaseLight() 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.

###### phosh_dbus_sensor_proxy_complete_release_proximity

Helper function used in service implementations to finish handling invocations of the ReleaseProximity() 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.

###### phosh_dbus_sensor_proxy_dup_accelerometer_orientation

Gets a copy of the “AccelerometerOrientation” D-Bus property.

###### phosh_dbus_sensor_proxy_dup_light_level_unit

Gets a copy of the “LightLevelUnit” D-Bus property.

###### phosh_dbus_sensor_proxy_get_accelerometer_orientation

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

###### phosh_dbus_sensor_proxy_get_has_accelerometer

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

###### phosh_dbus_sensor_proxy_get_has_ambient_light

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

###### phosh_dbus_sensor_proxy_get_has_proximity

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

###### phosh_dbus_sensor_proxy_get_light_level

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

###### phosh_dbus_sensor_proxy_get_light_level_unit

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

###### phosh_dbus_sensor_proxy_get_proximity_near

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

###### phosh_dbus_sensor_proxy_set_accelerometer_orientation

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

###### phosh_dbus_sensor_proxy_set_has_accelerometer

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

###### phosh_dbus_sensor_proxy_set_has_ambient_light

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

###### phosh_dbus_sensor_proxy_set_has_proximity

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

###### phosh_dbus_sensor_proxy_set_light_level

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

###### phosh_dbus_sensor_proxy_set_light_level_unit

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

###### phosh_dbus_sensor_proxy_set_proximity_near

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

#### Properties

###### Phosh.DBusSensorProxy:accelerometer-orientation

Represents the D-Bus property “AccelerometerOrientation”.

###### Phosh.DBusSensorProxy:has-accelerometer

Represents the D-Bus property “HasAccelerometer”.

###### Phosh.DBusSensorProxy:has-ambient-light

Represents the D-Bus property “HasAmbientLight”.

###### Phosh.DBusSensorProxy:has-proximity

Represents the D-Bus property “HasProximity”.

###### Phosh.DBusSensorProxy:light-level

Represents the D-Bus property “LightLevel”.

###### Phosh.DBusSensorProxy:light-level-unit

Represents the D-Bus property “LightLevelUnit”.

###### Phosh.DBusSensorProxy:proximity-near

Represents the D-Bus property “ProximityNear”.

#### Signals

###### Phosh.DBusSensorProxy::handle-claim-accelerometer

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

###### Phosh.DBusSensorProxy::handle-claim-light

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

###### Phosh.DBusSensorProxy::handle-claim-proximity

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

###### Phosh.DBusSensorProxy::handle-release-accelerometer

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

###### Phosh.DBusSensorProxy::handle-release-light

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

###### Phosh.DBusSensorProxy::handle-release-proximity

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

#### Interface structure

    struct PhoshDBusSensorProxyIface {
      GTypeInterface parent_iface;
      gboolean (* handle_claim_accelerometer) (
        PhoshDBusSensorProxy* object,
        GDBusMethodInvocation* invocation
      );
      gboolean (* handle_claim_light) (
        PhoshDBusSensorProxy* object,
        GDBusMethodInvocation* invocation
      );
      gboolean (* handle_claim_proximity) (
        PhoshDBusSensorProxy* object,
        GDBusMethodInvocation* invocation
      );
      gboolean (* handle_release_accelerometer) (
        PhoshDBusSensorProxy* object,
        GDBusMethodInvocation* invocation
      );
      gboolean (* handle_release_light) (
        PhoshDBusSensorProxy* object,
        GDBusMethodInvocation* invocation
      );
      gboolean (* handle_release_proximity) (
        PhoshDBusSensorProxy* object,
        GDBusMethodInvocation* invocation
      );
      const gchar* (* get_accelerometer_orientation) (
        PhoshDBusSensorProxy* object
      );
      gboolean (* get_has_accelerometer) (
        PhoshDBusSensorProxy* object
      );
      gboolean (* get_has_ambient_light) (
        PhoshDBusSensorProxy* object
      );
      gboolean (* get_has_proximity) (
        PhoshDBusSensorProxy* object
      );
      gdouble (* get_light_level) (
        PhoshDBusSensorProxy* object
      );
      const gchar* (* get_light_level_unit) (
        PhoshDBusSensorProxy* object
      );
      gboolean (* get_proximity_near) (
        PhoshDBusSensorProxy* object
      );

    }

Virtual table for the D-Bus interface net.hadess.SensorProxy.

###### Interface members

`parent_iface` |
    GTypeInterface
| The parent interface.
`handle_claim_accelerometer` |
    gboolean (* handle_claim_accelerometer) (
        PhoshDBusSensorProxy* object,
        GDBusMethodInvocation* invocation
      )
| Handler for the `PhoshDBusSensorProxy::handle-claim-accelerometer` signal.
`handle_claim_light` |
    gboolean (* handle_claim_light) (
        PhoshDBusSensorProxy* object,
        GDBusMethodInvocation* invocation
      )
| Handler for the `PhoshDBusSensorProxy::handle-claim-light` signal.
`handle_claim_proximity` |
    gboolean (* handle_claim_proximity) (
        PhoshDBusSensorProxy* object,
        GDBusMethodInvocation* invocation
      )
| Handler for the `PhoshDBusSensorProxy::handle-claim-proximity` signal.
`handle_release_accelerometer` |
    gboolean (* handle_release_accelerometer) (
        PhoshDBusSensorProxy* object,
        GDBusMethodInvocation* invocation
      )
| Handler for the `PhoshDBusSensorProxy::handle-release-accelerometer` signal.
`handle_release_light` |
    gboolean (* handle_release_light) (
        PhoshDBusSensorProxy* object,
        GDBusMethodInvocation* invocation
      )
| Handler for the `PhoshDBusSensorProxy::handle-release-light` signal.
`handle_release_proximity` |
    gboolean (* handle_release_proximity) (
        PhoshDBusSensorProxy* object,
        GDBusMethodInvocation* invocation
      )
| Handler for the `PhoshDBusSensorProxy::handle-release-proximity` signal.
`get_accelerometer_orientation` |
    const gchar* (* get_accelerometer_orientation) (
        PhoshDBusSensorProxy* object
      )
| Getter for the `PhoshDBusSensorProxy:accelerometer-orientation` property.
`get_has_accelerometer` |
    gboolean (* get_has_accelerometer) (
        PhoshDBusSensorProxy* object
      )
| Getter for the `PhoshDBusSensorProxy:has-accelerometer` property.
`get_has_ambient_light` |
    gboolean (* get_has_ambient_light) (
        PhoshDBusSensorProxy* object
      )
| Getter for the `PhoshDBusSensorProxy:has-ambient-light` property.
`get_has_proximity` |
    gboolean (* get_has_proximity) (
        PhoshDBusSensorProxy* object
      )
| Getter for the `PhoshDBusSensorProxy:has-proximity` property.
`get_light_level` |
    gdouble (* get_light_level) (
        PhoshDBusSensorProxy* object
      )
| Getter for the `PhoshDBusSensorProxy:light-level` property.
`get_light_level_unit` |
    const gchar* (* get_light_level_unit) (
        PhoshDBusSensorProxy* object
      )
| Getter for the `PhoshDBusSensorProxy:light-level-unit` property.
`get_proximity_near` |
    gboolean (* get_proximity_near) (
        PhoshDBusSensorProxy* object
      )
| Getter for the `PhoshDBusSensorProxy:proximity-near` property.

#### Virtual methods

###### Phosh.DBusSensorProxy.get_accelerometer_orientation

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

###### Phosh.DBusSensorProxy.get_has_accelerometer

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

###### Phosh.DBusSensorProxy.get_has_ambient_light

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

###### Phosh.DBusSensorProxy.get_has_proximity

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

###### Phosh.DBusSensorProxy.get_light_level

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

###### Phosh.DBusSensorProxy.get_light_level_unit

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

###### Phosh.DBusSensorProxy.get_proximity_near

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

###### Phosh.DBusSensorProxy.handle_claim_accelerometer

Handler for the `PhoshDBusSensorProxy::handle-claim-accelerometer` signal.

###### Phosh.DBusSensorProxy.handle_claim_light

Handler for the `PhoshDBusSensorProxy::handle-claim-light` signal.

###### Phosh.DBusSensorProxy.handle_claim_proximity

Handler for the `PhoshDBusSensorProxy::handle-claim-proximity` signal.

###### Phosh.DBusSensorProxy.handle_release_accelerometer

Handler for the `PhoshDBusSensorProxy::handle-release-accelerometer` signal.

###### Phosh.DBusSensorProxy.handle_release_light

Handler for the `PhoshDBusSensorProxy::handle-release-light` signal.

###### Phosh.DBusSensorProxy.handle_release_proximity

Handler for the `PhoshDBusSensorProxy::handle-release-proximity` signal.