Function

Gio-2.0Giobus_own_nameSince 2.26

  • Version of [func@Gio.bus_own_name using closures instead of callbacks for easier binding in other languages.

    Parameters

    • bus_type: Gio.BusType

      the type of bus to own a name on

    • name: string

      the well-known name to own

    • flags: Gio.BusNameOwnerFlags

      a set of flags with ownership options

    • Optionalbus_acquired_closure: Closure<any, any>

      closure to invoke when connected to the bus of type bus_type, or NULL to ignore

    • Optionalname_acquired_closure: Closure<any, any>

      closure to invoke when name is acquired, or NULL to ignore

    • Optionalname_lost_closure: Closure<any, any>

      closure to invoke when name is lost, or NULL to ignore

    Returns number

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

    2.26