new

fun new(mimeTypes: List<String>? = null, nMimeTypes: <Error class: unknown class>): ContentFormats

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.

Return

the new GdkContentFormats.

Parameters

mimeTypes

Pointer to an array of mime types

nMimeTypes

number of entries in @mime_types.