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
mimeType | the mime type to provide the data in |
stream | the [gio.output_stream.OutputStream] to write to |
ioPriority | I/O priority of the request. |
cancellable | optional [gio.cancellable.Cancellable] object, null to ignore. |
callback | callback to call when the request is satisfied |