contentSerializeAsync

fun contentSerializeAsync(stream: <Error class: unknown class>, mimeType: String, value: <Error class: unknown class>, ioPriority: <Error class: unknown class>, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>?)(source)

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

The default I/O priority is %G_PRIORITY_DEFAULT (i.e. 0), and lower numbers indicate a higher priority.

When the operation is finished, @callback will be called. You must then call func@Gdk.content_serialize_finish to get the result of the operation.

Parameters

stream

a GOutputStream to write the serialized content to

mimeType

the mime type to serialize to

value

the content to serialize

ioPriority

the I/O priority of the operation

cancellable

optional GCancellable object

callback

callback to call when the operation is done