SourceFileLoader.loadAsync

Loads asynchronously the file or input stream contents into the gsv.SourceBuffer See the GAsyncResult documentation to know how to use this function.

Parameters

ioPriority int

the I/O priority of the request. E.g. G_PRIORITY_LOW, G_PRIORITY_DEFAULT or G_PRIORITY_HIGH.

cancellable Cancellable

optional gio.Cancellable object, NULL to ignore.

progressCallback GFileProgressCallback

function to call back with progress information, or NULL if progress information is not needed.

progressCallbackData void*

user data to pass to progress_callback.

progressCallbackNotify GDestroyNotify

function to call on progress_callback_data when the progress_callback is no longer needed, or NULL.

callback GAsyncReadyCallback

a GAsyncReadyCallback to call when the request is satisfied.

userData void*

user data to pass to callback.

Meta

Since

3.14