ContentProvider.writeMimeTypeAsync

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 [method@Gdk.ContentProvider.write_mime_type_finish] to get the result of the operation.

The given mime type does not need to be listed in the formats returned by [method@Gdk.ContentProvider.ref_formats]. However, if the given GType is not supported, #G_IO_ERROR_NOT_SUPPORTED will be reported.

The given @stream will not be closed.

class ContentProvider
void
writeMimeTypeAsync

Parameters

mimeType string

the mime type to provide the data in

stream OutputStream

the GOutputStream to write to

ioPriority int

I/O priority of the request.

cancellable Cancellable

optional GCancellable object, %NULL to ignore.

callback GAsyncReadyCallback

callback to call when the request is satisfied

userData void*

the data to pass to callback function

Meta