Gio.DBusObject.prototype.get_interface

function get_interface(interface_name: String): Gio.DBusInterface {
    // Gjs wrapper for g_dbus_object_get_interface()
}
  

Gets the D-Bus interface with name interface_name associated with object, if any.

Since 2.30

interface_name

A D-Bus interface name.

Returns

null if not found, otherwise a Gio.DBusInterface that must be freed with GObject.Object.prototype.unref.