GLib.BookmarkFile.prototype.get_mime_type
function get_mime_type(uri: String): String { // Gjs wrapper for g_bookmark_file_get_mime_type() }
Retrieves the MIME type of the resource pointed by uri.
In the event the URI cannot be found, null is returned and @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. In the event that the MIME type cannot be found, null is returned and @error is set to #G_BOOKMARK_FILE_ERROR_INVALID_VALUE.
Since 2.12
- uri
a valid URI
- Returns
a newly allocated string or null if the specified URI cannot be found.