callMethod method

Future<DBusMethodSuccessResponse> callMethod(
  1. String? interface,
  2. String name,
  3. Iterable<DBusValue> values, {
  4. DBusSignature? replySignature,
  5. bool noReplyExpected = false,
  6. bool noAutoStart = false,
  7. bool allowInteractiveAuthorization = false,
})
inherited

Invokes a method on this object. Throws DBusMethodResponseException if the remote side returns an error.

If replySignature is provided this causes this method to throw a DBusReplySignatureException if the result is successful but the returned values do not match the provided signature.

Throws DBusServiceUnknownException if there is the requested service is not available. Throws DBusUnknownObjectException if this object is not available. Throws DBusUnknownInterfaceException if interface is not provided by this object. Throws DBusUnknownMethodException if the method with name is not available. Throws DBusInvalidArgsException if args aren't correct.

Implementation

Future<DBusMethodSuccessResponse> callMethod(
    String? interface, String name, Iterable<DBusValue> values,
    {DBusSignature? replySignature,
    bool noReplyExpected = false,
    bool noAutoStart = false,
    bool allowInteractiveAuthorization = false}) async {
  return client.callMethod(
      destination: this.name,
      path: path,
      interface: interface,
      name: name,
      values: values,
      replySignature: replySignature,
      noReplyExpected: noReplyExpected,
      noAutoStart: noAutoStart,
      allowInteractiveAuthorization: allowInteractiveAuthorization);
}