Class OsxAppInfo
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class OsxAppInfo : Object, AppInfo, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
OsxAppInfo
- Implements
- Inherited Members
Constructors
OsxAppInfo(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public OsxAppInfo(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
OsxAppInfo(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected OsxAppInfo(CreationData data)
Parameters
dataCreationData
OsxAppInfo(OsxAppInfoHandle)
protected OsxAppInfo(OsxAppInfoHandle handle)
Parameters
handleOsxAppInfoHandle
Methods
AddSupportsType(string)
public bool AddSupportsType(string contentType)
Parameters
contentTypestring
Returns
CanDelete()
[Version("2.20")]
public bool CanDelete()
Returns
CanRemoveSupportsType()
public bool CanRemoveSupportsType()
Returns
Delete()
[Version("2.20")]
public bool Delete()
Returns
Dup()
public AppInfo Dup()
Returns
Equal(AppInfo)
public bool Equal(AppInfo appinfo2)
Parameters
appinfo2AppInfo
Returns
GetAllForScheme(string)
public static List GetAllForScheme(string scheme)
Parameters
schemestring
Returns
GetCommandline()
[Version("2.20")]
public string? GetCommandline()
Returns
GetDescription()
public string? GetDescription()
Returns
GetDisplayName()
[Version("2.24")]
public string GetDisplayName()
Returns
GetExecutable()
public string GetExecutable()
Returns
GetFilename()
public string GetFilename()
Returns
GetGType()
public static Type GetGType()
Returns
GetIcon()
public Icon? GetIcon()
Returns
GetId()
public string? GetId()
Returns
GetName()
public string GetName()
Returns
GetSupportedTypes()
[Version("2.34")]
public string[] GetSupportedTypes()
Returns
- string[]
Launch(List?, AppLaunchContext?)
public bool Launch(List? files, AppLaunchContext? context)
Parameters
filesListcontextAppLaunchContext
Returns
LaunchUris(List?, AppLaunchContext?)
public bool LaunchUris(List? uris, AppLaunchContext? context)
Parameters
urisListcontextAppLaunchContext
Returns
LaunchUrisFinish(AsyncResult)
[Version("2.60")]
public bool LaunchUrisFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
NewFromPointer(nint, bool)
Creates a new managed OsxAppInfo instance for a given pointer.
public static OsxAppInfo NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new OsxAppInfo and sets the properties specified by the construct arguments.
public static OsxAppInfo NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
RemoveSupportsType(string)
public bool RemoveSupportsType(string contentType)
Parameters
contentTypestring
Returns
SetAsDefaultForExtension(string)
public bool SetAsDefaultForExtension(string extension)
Parameters
extensionstring
Returns
SetAsDefaultForType(string)
public bool SetAsDefaultForType(string contentType)
Parameters
contentTypestring
Returns
SetAsLastUsedForType(string)
public bool SetAsLastUsedForType(string contentType)
Parameters
contentTypestring
Returns
ShouldShow()
public bool ShouldShow()
Returns
SupportsFiles()
public bool SupportsFiles()
Returns
SupportsUris()
public bool SupportsUris()