ContentProvider.newForBytes

gdk.content_provider.ContentProvider newForBytes(string mimeType, glib.bytes.Bytes bytes) static nothrow

Create a content provider that provides the given bytes as data for the given mime_type.

Parameters

mimeTypethe mime type
bytesa glib.bytes.Bytes with the data for mime_type

Returns