The name (well-known or unique) to watch.
Flags from the Gio.BusNameWatcherFlags enumeration.
Optionalname_appeared_closure: Closure<any, any>GObject.Closure to invoke when name is known to exist or null.
Optionalname_vanished_closure: Closure<any, any>GObject.Closure to invoke when name is known to not exist or null.
An identifier (never 0) that can be used with g_bus_unwatch_name() to stop watching the name.
Version of
g_bus_watch_name_on_connection()using closures instead of callbacks for easier binding in other languages.