ContentProvider.for_bytes
Description:
[ CCode ( has_construct_function = false ) ]
public ContentProvider.for_bytes (string mime_type, Bytes bytes)
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 |
Returns:
|
a new `GdkContentProvider` |