BookmarkFile.getMimeType

string getMimeType(string uri)

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.

Parameters

uria valid URI

Returns

a newly allocated string or null if the specified

URI cannot be found.

Throws

[BookmarkFileException]