content_serialize_async


Description:


public async bool content_serialize_async (OutputStream stream, string mime_type, Value value, int io_priority, Cancellable? cancellable) throws Error

Serialize content and write it to the given output stream, asynchronously.

When the operation is finished, callback will be called. You can then call content_serialize_async.end to get the result of the operation.

Parameters:

stream

a OutputStream to write the serialized content to

mime_type

the mime type to serialize to

value

the content to serialize

io_priority

the io priority of the operation

cancellable

optional Cancellable object

callback

callback to call when the operation is done

user_data

data to pass to the callback function


Namespace: Gdk
Package: gtk4