Companion

object Companion

Properties

Link copied to clipboard
open val type: <Error class: unknown class><AppInfo>

Functions

Link copied to clipboard
fun createFromCommandline(commandline: String, applicationName: String? = null, flags: AppInfoCreateFlags): <Error class: unknown class><AppInfo>

Creates a new iface@Gio.AppInfo from the given information.

Link copied to clipboard
fun getAll(): <Error class: unknown class>

Gets a list of all of the applications currently registered on this system.

Link copied to clipboard
fun getAllForType(contentType: String): <Error class: unknown class>

Gets a list of all iface@Gio.AppInfos for a given content type, including the recommended and fallback iface@Gio.AppInfos. See func@Gio.AppInfo.get_recommended_for_type and func@Gio.AppInfo.get_fallback_for_type.

Link copied to clipboard
fun getDefaultForType(contentType: String, mustSupportUris: Boolean): AppInfo?

Gets the default iface@Gio.AppInfo for a given content type.

Link copied to clipboard
fun getDefaultForTypeAsync(contentType: String, mustSupportUris: Boolean, cancellable: Cancellable? = null, callback: AsyncReadyCallback?)

Asynchronously gets the default iface@Gio.AppInfo for a given content type.

Link copied to clipboard
fun getDefaultForTypeFinish(result: AsyncResult): <Error class: unknown class><AppInfo>

Finishes a default iface@Gio.AppInfo lookup started by func@Gio.AppInfo.get_default_for_type_async.

Link copied to clipboard

Gets the default application for handling URIs with the given URI scheme.

Link copied to clipboard
fun getDefaultForUriSchemeAsync(uriScheme: String, cancellable: Cancellable? = null, callback: AsyncReadyCallback?)

Asynchronously gets the default application for handling URIs with the given URI scheme. A URI scheme is the initial part of the URI, up to but not including the :, e.g. http, ftp or sip.

Link copied to clipboard
fun getDefaultForUriSchemeFinish(result: AsyncResult): <Error class: unknown class><AppInfo>

Finishes a default iface@Gio.AppInfo lookup started by func@Gio.AppInfo.get_default_for_uri_scheme_async.

Link copied to clipboard
fun getFallbackForType(contentType: String): <Error class: unknown class>

Gets a list of fallback iface@Gio.AppInfos for a given content type, i.e. those applications which claim to support the given content type by MIME type subclassing and not directly.

Link copied to clipboard
fun getRecommendedForType(contentType: String): <Error class: unknown class>

Gets a list of recommended iface@Gio.AppInfos for a given content type, i.e. those applications which claim to support the given content type exactly, and not by MIME type subclassing.

Link copied to clipboard
fun getType(): <Error class: unknown class>

Get the GType of AppInfo

Link copied to clipboard
fun launchDefaultForUri(uri: String, context: AppLaunchContext? = null): <Error class: unknown class><Boolean>

Utility function that launches the default application registered to handle the specified uri. Synchronous I/O is done on the uri to detect the type of the file if required.

Link copied to clipboard
fun launchDefaultForUriAsync(uri: String, context: AppLaunchContext? = null, cancellable: Cancellable? = null, callback: AsyncReadyCallback?)

Async version of func@Gio.AppInfo.launch_default_for_uri.

Link copied to clipboard
fun launchDefaultForUriFinish(result: AsyncResult): <Error class: unknown class><Boolean>

Finishes an asynchronous launch-default-for-uri operation.

Link copied to clipboard
fun resetTypeAssociations(contentType: String)

Removes all changes to the type associations done by method@Gio.AppInfo.set_as_default_for_type, method@Gio.AppInfo.set_as_default_for_extension, method@Gio.AppInfo.add_supports_type or method@Gio.AppInfo.remove_supports_type.

Link copied to clipboard
fun wrap(pointer: <Error class: unknown class><<Error class: unknown class>>): AppInfo