ping method

Future<void> ping([
  1. String destination = 'org.freedesktop.DBus'
])

Sends a ping request to the client at the given destination. If destination is not set, pings the D-Bus server.

Implementation

Future<void> ping([String destination = 'org.freedesktop.DBus']) async {
  await callMethod(
      destination: destination,
      path: DBusObjectPath.root,
      interface: 'org.freedesktop.DBus.Peer',
      name: 'Ping',
      replySignature: DBusSignature(''));
}