busGet

Asynchronously connects to the message bus specified by bus_type.

When the operation is finished, callback will be invoked. You can then call gio.global.busGetFinish to get the result of the operation.

This is an asynchronous failable function. See gio.global.busGetSync for the synchronous version.

Parameters

busType gio.types.BusType

a #GBusType

cancellable gio.cancellable.Cancellable

a #GCancellable or null

callback gio.types.AsyncReadyCallback

a #GAsyncReadyCallback to call when the request is satisfied