ContentFormats


Description:

[ CCode ( has_construct_function = false ) ]
public ContentFormats (string[]? mime_types)

Creates a new `GdkContentFormats` from an array of mime types.

The mime types must be valid and different from each other or the behavior of the return value is undefined. If you cannot guarantee this, use [struct@Gdk.ContentFormatsBuilder] instead.

Parameters:

mime_types

Pointer to an array of mime types

n_mime_types

number of entries in mime_types.

Returns:

the new `GdkContentFormats`.