file_async


Description:

[ Version ( since = "0.7.0" ) ]
public async bool file_async (Type type, ProcessFlags flags, File file, string? artist, string? title, int io_priority, Cancellable? cancellable) throws Error

Processes media art.

Precisely the same operation as file is performing, but asynchronously.

When all i/o for the operation is finished the callback will be called.

In case of a partial error the callback will be called with any succeeding items and no error, and on the next request the error will be reported. If a request is cancelled the callback will be called with g_io_error_cancelled.

During an async request no other sync and async calls are allowed, and will result in g_io_error_pending errors.

Any outstanding i/o request with higher priority (lower numerical value) will be executed before an outstanding request with lower priority. Default priority is g_priority_default.

Parameters:

this

Media art process object

type

The type of media

flags

The options given for how to process the media art

file

File to be processed

artist

The artist name file or null

title

The title for file or null

io_priority

the I/O priority of the request

cancellable

optional Cancellable object, null to ignore

callback

a TaskReadyCallback to call when the request is satisfied

user_data

the data to pass to callback function