BookmarkFile.getMimeType

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.

class BookmarkFile
string
getMimeType
(
string uri
)

Parameters

uri string

a valid URI

Return Value

Type: string

a newly allocated string or null if the specified URI cannot be found.