busWatchNameOnConnection

Version of gio.global.busWatchNameOnConnection using closures instead of callbacks for easier binding in other languages.

Parameters

connection gio.dbus_connection.DBusConnection

A #GDBusConnection.

name string

The name (well-known or unique) to watch.

flags gio.types.BusNameWatcherFlags

Flags from the #GBusNameWatcherFlags enumeration.

nameAppearedClosure gobject.closure.Closure

#GClosure to invoke when name is known to exist or null.

nameVanishedClosure gobject.closure.Closure

#GClosure to invoke when name is known to not exist or null.

Return Value

Type: uint

An identifier (never 0) that can be used with gio.global.busUnwatchName to stop watching the name.