Mount.guessContentType

void guessContentType(bool forceRescan, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Tries to guess the type of content stored on mount. Returns one or more textual identifiers of well-known content types (typically prefixed with "x-content/"), e.g. x-content/image-dcf for camera memory cards. See the shared-mime-info specification for more on x-content types.

This is an asynchronous operation (see gio.mount.Mount.guessContentTypeSync for the synchronous version), and is finished by calling gio.mount.Mount.guessContentTypeFinish with the mount and #GAsyncResult data returned in the callback.

Parameters

forceRescanWhether to force a rescan of the content. Otherwise a cached result will be used if available
cancellableoptional #GCancellable object, null to ignore
callbacka #GAsyncReadyCallback