get_mime_types


Description:

[ CCode ( array_length = false , array_null_terminated = true ) ]
public unowned string[] get_mime_types ()

Get the list of MIME types the file chooser dialog should handle.

Get the list of MIME types the file chooser dialog should handle, in the format specified in RFC 2046 for "media types". Its contents depend on the value of the 'accept' attribute for HTML input elements. This function should normally be called before presenting the file chooser dialog to the user, to decide whether to allow the user to select multiple files at once or only one.

Parameters:

this

a FileChooserRequest

Returns:

a null-terminated array of strings if a list of accepted MIME types is defined or null otherwise, meaning that any MIME type should be accepted. This array and its contents are owned by WebKit and should not be modified or freed.




2022 vala-language.org