setProperty method

Future<void> setProperty(
  1. String interface,
  2. String name,
  3. DBusValue value
)
inherited

Sets a property 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. Throws DBusUnknownPropertyException if the property doesn't exist. Throws DBusPropertyReadOnlyException if the property can't be written.

Implementation

Future<void> setProperty(
    String interface, String name, DBusValue value) async {
  await client.callMethod(
      destination: this.name,
      path: path,
      interface: 'org.freedesktop.DBus.Properties',
      name: 'Set',
      values: [DBusString(interface), DBusString(name), DBusVariant(value)],
      replySignature: DBusSignature(''));
}