Schnittstelle DBusInterfaceVTable.OnDBusInterfaceMethodCallFunc

Umschließende Klasse:
DBusInterfaceVTable
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface DBusInterfaceVTable.OnDBusInterfaceMethodCallFunc
  • Methodendetails

    • onDBusInterfaceMethodCallFunc

      void onDBusInterfaceMethodCallFunc(CallbackHandler __self, @Nonnull DBusConnection connection, @Nullable Str sender, @Nonnull Str object_path, @Nullable Str interface_name, @Nonnull Str method_name, @Nonnull Variant parameters, @Nonnull DBusMethodInvocation invocation, @Nullable Pointer user_data)
      The type of the @method_call function in #GDBusInterfaceVTable.

      @interface_name may be `NULL` if not specified by the sender, although it’s
      encouraged for the sender to set it. If unset, and the object has only one
      method (across all interfaces) matching @method_name, that method is invoked.
      Otherwise, behaviour is implementation defined. See the
      [D-Bus specification](https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-types-method).
      It is recommended to return [error@Gio.DBusError.UNKNOWN_METHOD].
      Parameter:
      connection - A #GDBusConnection.
      sender - The unique bus name of the remote caller, or `NULL` if not specified by the caller, e.g. on peer-to-peer connections.
      object_path - The object path that the method was invoked on.
      interface_name - The D-Bus interface name the method was invoked on, or `NULL` if not specified by the sender.
      method_name - The name of the method that was invoked.
      parameters - A #GVariant tuple with parameters.
      invocation - A #GDBusMethodInvocation object that must be used to return a value or error.
      user_data - The @user_data #gpointer passed to g_dbus_connection_register_object().