busWatchName

fnuint busWatchName(gio.types.BusType busType, string name, gio.types.BusNameWatcherFlags flags, gobject.closure.Closure nameAppearedClosure = null, gobject.closure.Closure nameVanishedClosure = null)

Version of [gio.global.busWatchName] using closures instead of callbacks for easier binding in other languages.

Parameters

busTypeThe type of bus to watch a name on.
nameThe name (well-known or unique) to watch.
flagsFlags 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

[gio.global.busUnwatchName] to stop watching the name.