ContentProvider.writeMimeTypeAsync

void writeMimeTypeAsync(string mimeType, gio.output_stream.OutputStream stream, int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Asynchronously writes the contents of provider to stream in the given mime_type.

When the operation is finished callback will be called. You must then call gdk.content_provider.ContentProvider.writeMimeTypeFinish to get the result of the operation.

The given mime type does not need to be listed in the formats returned by gdk.content_provider.ContentProvider.refFormats. However, if the given GType is not supported, gio.types.IOErrorEnum.NotSupported will be reported.

The given stream will not be closed.

Parameters

mimeTypethe mime type to provide the data in
streamthe gio.output_stream.OutputStream to write to
ioPriorityI/O priority of the request.
cancellableoptional gio.cancellable.Cancellable object, null to ignore.
callbackcallback to call when the request is satisfied