Class AppInfoHelper
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public sealed class AppInfoHelper : Object, AppInfo, IDisposable, InstanceFactory, GTypeProvider
- Inheritance
-
AppInfoHelper
- Implements
-
- Inherited Members
-
Constructors
AppInfoHelper(ObjectHandle)
public AppInfoHelper(ObjectHandle handle)
Parameters
handle ObjectHandle
Methods
AddSupportsType(string)
public bool AddSupportsType(string contentType)
Parameters
contentType string
Returns
- bool
CanDelete()
[Version("2.20")]
public bool CanDelete()
Returns
- bool
CanRemoveSupportsType()
public bool CanRemoveSupportsType()
Returns
- bool
CreateFromCommandline(string, string?, AppInfoCreateFlags)
public static AppInfo CreateFromCommandline(string commandline, string? applicationName, AppInfoCreateFlags flags)
Parameters
commandline string
applicationName string
flags AppInfoCreateFlags
Returns
- AppInfo
Delete()
[Version("2.20")]
public bool Delete()
Returns
- bool
Dup()
Returns
- AppInfo
Equal(AppInfo)
public bool Equal(AppInfo appinfo2)
Parameters
appinfo2 AppInfo
Returns
- bool
GetAll()
public static List GetAll()
Returns
- List
GetAllForType(string)
public static List GetAllForType(string contentType)
Parameters
contentType string
Returns
- List
GetCommandline()
[Version("2.20")]
public string? GetCommandline()
Returns
- string
GetDefaultForType(string, bool)
public static AppInfo? GetDefaultForType(string contentType, bool mustSupportUris)
Parameters
contentType string
mustSupportUris bool
Returns
- AppInfo
GetDefaultForTypeFinish(AsyncResult)
[Version("2.74")]
public static AppInfo GetDefaultForTypeFinish(AsyncResult result)
Parameters
result AsyncResult
Returns
- AppInfo
GetDefaultForUriScheme(string)
public static AppInfo? GetDefaultForUriScheme(string uriScheme)
Parameters
uriScheme string
Returns
- AppInfo
GetDefaultForUriSchemeFinish(AsyncResult)
[Version("2.74")]
public static AppInfo GetDefaultForUriSchemeFinish(AsyncResult result)
Parameters
result AsyncResult
Returns
- AppInfo
GetDescription()
public string? GetDescription()
Returns
- string
GetDisplayName()
[Version("2.24")]
public string GetDisplayName()
Returns
- string
GetExecutable()
public string GetExecutable()
Returns
- string
GetFallbackForType(string)
[Version("2.28")]
public static List GetFallbackForType(string contentType)
Parameters
contentType string
Returns
- List
GetGType()
public static Type GetGType()
Returns
- Type
GetIcon()
Returns
- Icon
GetId()
Returns
- string
GetName()
Returns
- string
GetRecommendedForType(string)
[Version("2.28")]
public static List GetRecommendedForType(string contentType)
Parameters
contentType string
Returns
- List
GetSupportedTypes()
[Version("2.34")]
public string[] GetSupportedTypes()
Returns
- string[]
Launch(List?, AppLaunchContext?)
public bool Launch(List? files, AppLaunchContext? context)
Parameters
files List
context AppLaunchContext
Returns
- bool
LaunchDefaultForUri(string, AppLaunchContext?)
public static bool LaunchDefaultForUri(string uri, AppLaunchContext? context)
Parameters
uri string
context AppLaunchContext
Returns
- bool
LaunchDefaultForUriFinish(AsyncResult)
[Version("2.50")]
public static bool LaunchDefaultForUriFinish(AsyncResult result)
Parameters
result AsyncResult
Returns
- bool
LaunchUris(List?, AppLaunchContext?)
public bool LaunchUris(List? uris, AppLaunchContext? context)
Parameters
uris List
context AppLaunchContext
Returns
- bool
LaunchUrisFinish(AsyncResult)
[Version("2.60")]
public bool LaunchUrisFinish(AsyncResult result)
Parameters
result AsyncResult
Returns
- bool
RemoveSupportsType(string)
public bool RemoveSupportsType(string contentType)
Parameters
contentType string
Returns
- bool
ResetTypeAssociations(string)
[Version("2.20")]
public static void ResetTypeAssociations(string contentType)
Parameters
contentType string
SetAsDefaultForExtension(string)
public bool SetAsDefaultForExtension(string extension)
Parameters
extension string
Returns
- bool
SetAsDefaultForType(string)
public bool SetAsDefaultForType(string contentType)
Parameters
contentType string
Returns
- bool
SetAsLastUsedForType(string)
public bool SetAsLastUsedForType(string contentType)
Parameters
contentType string
Returns
- bool
ShouldShow()
Returns
- bool
SupportsFiles()
public bool SupportsFiles()
Returns
- bool
SupportsUris()
public bool SupportsUris()
Returns
- bool