ContentProvider.newForBytes

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

class ContentProvider
static
newForBytes

Parameters

mimeType string

the mime type

bytes glib.bytes.Bytes

a glib.bytes.Bytes with the data for mime_type

Return Value

Type: gdk.content_provider.ContentProvider