Gio.DBusProxy.prototype.get_cached_property

function get_cached_property(property_name: String): GLib.Variant {
    // Gjs wrapper for g_dbus_proxy_get_cached_property()
}
  

Looks up the value for a property from the cache. This call does no blocking IO.

If proxy has an expected interface (see Gio.DBusProxy.g_interface_info) and property_name is referenced by it, then @value is checked against the type of the property.

Since 2.26

property_name

Property name.

Returns

A reference to the GLib.Variant instance that holds the value for property_name or null if the value is not in the cache. The returned reference must be freed with GLib.Variant.prototype.unref.