busOwnName

fun busOwnName(busType: BusType, name: String, flags: BusNameOwnerFlags, busAcquiredClosure: <Error class: unknown class>? = null, nameAcquiredClosure: <Error class: unknown class>? = null, nameLostClosure: <Error class: unknown class>? = null): <Error class: unknown class>

Version of g_bus_own_name() using closures instead of callbacks for easier binding in other languages.

Return

an identifier (never 0) that can be used with g_bus_unown_name() to stop owning the name.

Since

2.26

Parameters

busType

the type of bus to own a name on

name

the well-known name to own

flags

a set of flags from the #GBusNameOwnerFlags enumeration

busAcquiredClosure

#GClosure to invoke when connected to the bus of type @bus_type or null

nameAcquiredClosure

#GClosure to invoke when @name is acquired or null

nameLostClosure

#GClosure to invoke when @name is lost or null