getAllProperties method

Future<Map<String, DBusValue>> getAllProperties(
  1. String interface
)
inherited

Gets the values of all the properties on this object.

Throws DBusServiceUnknownException if there is the requested service is not available. Throws DBusUnknownObjectException if this object is not available. Throws DBusUnknownInterfaceException if properties are not supported by this object.

Implementation

Future<Map<String, DBusValue>> getAllProperties(String interface) async {
  var result = await client.callMethod(
      destination: name,
      path: path,
      interface: 'org.freedesktop.DBus.Properties',
      name: 'GetAll',
      values: [DBusString(interface)],
      replySignature: DBusSignature('a{sv}'));
  return result.returnValues[0].asStringVariantDict();
}