Gio.DBusInterfaceInfo.prototype.lookup_method

function lookup_method(name: String): Gio.DBusMethodInfo {
    // Gjs wrapper for g_dbus_interface_info_lookup_method()
}
  

Looks up information about a method.

The cost of this function is O(n) in number of methods unless Gio.DBusInterfaceInfo.prototype.cache_build has been used on info.

Since 2.26

name

A D-Bus method name (typically in CamelCase)

Returns

A Gio.DBusMethodInfo or null if not found. Do not free, it is owned by info.