### Interface

# Phosh MprisDBusMediaPlayer2

#### Description [src]

    interface Phosh.MprisDBusMediaPlayer2 : GObject.Object

Abstract interface type for the D-Bus interface org.mpris.MediaPlayer2.

#### Prerequisite

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

#### Implementations

- PhoshMprisDBusMediaPlayer2Proxy
- PhoshMprisDBusMediaPlayer2Skeleton

#### Functions

###### phosh_mpris_dbus_media_player2_interface_info

Gets a machine-readable description of the org.mpris.MediaPlayer2 D-Bus interface.

###### phosh_mpris_dbus_media_player2_override_properties

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

#### Instance methods

###### phosh_mpris_dbus_media_player2_call_raise

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

###### phosh_mpris_dbus_media_player2_call_raise_finish

Finishes an operation started with phosh_mpris_dbus_media_player2_call_raise().

###### phosh_mpris_dbus_media_player2_call_raise_sync

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

###### phosh_mpris_dbus_media_player2_complete_raise

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

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

###### phosh_mpris_dbus_media_player2_get_can_raise

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

###### phosh_mpris_dbus_media_player2_get_desktop_entry

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

###### phosh_mpris_dbus_media_player2_set_can_raise

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

###### phosh_mpris_dbus_media_player2_set_desktop_entry

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

#### Properties

###### Phosh.MprisDBusMediaPlayer2:can-raise

Represents the D-Bus property “CanRaise”.

###### Phosh.MprisDBusMediaPlayer2:desktop-entry

Represents the D-Bus property “DesktopEntry”.

#### Signals

###### Phosh.MprisDBusMediaPlayer2::handle-raise

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

#### Interface structure

    struct PhoshMprisDBusMediaPlayer2Iface {
      GTypeInterface parent_iface;
      gboolean (* handle_raise) (
        PhoshMprisDBusMediaPlayer2* object,
        GDBusMethodInvocation* invocation
      );
      gboolean (* get_can_raise) (
        PhoshMprisDBusMediaPlayer2* object
      );
      const gchar* (* get_desktop_entry) (
        PhoshMprisDBusMediaPlayer2* object
      );

    }

Virtual table for the D-Bus interface org.mpris.MediaPlayer2.

###### Interface members

`parent_iface` |
    GTypeInterface
| The parent interface.
`handle_raise` |
    gboolean (* handle_raise) (
        PhoshMprisDBusMediaPlayer2* object,
        GDBusMethodInvocation* invocation
      )
| Handler for the `PhoshMprisDBusMediaPlayer2::handle-raise` signal.
`get_can_raise` |
    gboolean (* get_can_raise) (
        PhoshMprisDBusMediaPlayer2* object
      )
| Getter for the `PhoshMprisDBusMediaPlayer2:can-raise` property.
`get_desktop_entry` |
    const gchar* (* get_desktop_entry) (
        PhoshMprisDBusMediaPlayer2* object
      )
| Getter for the `PhoshMprisDBusMediaPlayer2:desktop-entry` property.

#### Virtual methods

###### Phosh.MprisDBusMediaPlayer2.get_can_raise

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

###### Phosh.MprisDBusMediaPlayer2.get_desktop_entry

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

###### Phosh.MprisDBusMediaPlayer2.handle_raise

Handler for the `PhoshMprisDBusMediaPlayer2::handle-raise` signal.