Gio.Mount.prototype.guess_content_type
function guess_content_type(force_rescan: Boolean, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_mount_guess_content_type() }
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](http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec) specification for more on x-content types.
This is an asynchronous operation (see Gio.Mount.prototype.guess_content_type_sync for the synchronous version), and is finished by calling Gio.Mount.prototype.guess_content_type_finish with the mount and Gio.AsyncResult data returned in the callback.
Since 2.18
- force_rescan
Whether to force a rescan of the content. Otherwise a cached result will be used if available
- cancellable
optional Gio.Cancellable object, null to ignore
- callback