get_default_for_type_async
Description:
[ Version ( since = "2.74" ) ]
public static async AppInfo get_default_for_type_async (string content_type, bool must_support_uris, Cancellable? cancellable = null) throws Error
public static async AppInfo get_default_for_type_async (string content_type, bool must_support_uris, Cancellable? cancellable = null) throws Error
Asynchronously gets the default [iface@Gio.
AppInfo] for a given content type.
Parameters:
| content_type |
the content type to find a [iface@Gio.AppInfo] for |
| must_support_uris |
if `TRUE`, the [iface@Gio.AppInfo] is expected to support URIs |
| cancellable |
a [class@Gio.Cancellable] |
| callback |
a [type@Gio.AsyncReadyCallback] to call when the request is done |
| user_data |
data to pass to |