ContentProvider.for_bytes


Description:

[ CCode ( has_construct_function = false ) ]
public ContentProvider.for_bytes (string mime_type, Bytes bytes)

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

Parameters:

mime_type

the mime type

bytes

a `GBytes` with the data for mime_type

Returns:

a new `GdkContentProvider`