[gio.global.busUnwatchName] to stop watching the name.
busWatchNameOnConnection
fn
uint busWatchNameOnConnection(gio.dbus_connection.DBusConnection connection, string name, gio.types.BusNameWatcherFlags flags, gobject.closure.Closure nameAppearedClosure = null, gobject.closure.Closure nameVanishedClosure = null)Version of [gio.global.busWatchNameOnConnection] using closures instead of callbacks for easier binding in other languages.
Parameters
connection | A #GDBusConnection. |
name | The name (well-known or unique) to watch. |
flags | Flags from the #GBusNameWatcherFlags enumeration. |
nameAppearedClosure | #GClosure to invoke when name is known to exist or null. |
nameVanishedClosure | #GClosure to invoke when name is known to not exist or null. |
Returns
An identifier (never 0) that can be used with