AsyncInitableIF.newvAsync

Helper function for constructing GAsyncInitable object. This is similar to g_object_newv() but also initializes the object asynchronously.

When the initialization is finished, callback will be called. You can then call g_async_initable_new_finish() to get the new object and check for any errors.

More...

Parameters

objectType GType

a GType supporting GAsyncInitable

nParameters uint

the number of parameters in parameters

parameters GParameter*

the parameters to use to construct the object

ioPriority int

the [I/O priority][io-priority] of the operation

cancellable Cancellable

optional gio.Cancellable object, NULL to ignore.

callback GAsyncReadyCallback

a GAsyncReadyCallback to call when the initialization is finished

userData void*

the data to pass to callback function

Detailed Description

Deprecated: Use g_object_new_with_properties() and g_async_initable_init_async() instead. See GParameter for more information.

Meta

Since

2.22