Table of Contents

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

constructArguments ConstructArgument[]

OsxAppInfo(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected OsxAppInfo(CreationData data)

Parameters

data CreationData

OsxAppInfo(OsxAppInfoHandle)

protected OsxAppInfo(OsxAppInfoHandle handle)

Parameters

handle OsxAppInfoHandle

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

Delete()

[Version("2.20")]
public bool Delete()

Returns

bool

Dup()

public AppInfo Dup()

Returns

AppInfo

Equal(AppInfo)

public bool Equal(AppInfo appinfo2)

Parameters

appinfo2 AppInfo

Returns

bool

GetAllForScheme(string)

public static List GetAllForScheme(string scheme)

Parameters

scheme string

Returns

List

GetCommandline()

[Version("2.20")]
public string? GetCommandline()

Returns

string

GetDescription()

public string? GetDescription()

Returns

string

GetDisplayName()

[Version("2.24")]
public string GetDisplayName()

Returns

string

GetExecutable()

public string GetExecutable()

Returns

string

GetFilename()

public string GetFilename()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetIcon()

public Icon? GetIcon()

Returns

Icon

GetId()

public string? GetId()

Returns

string

GetName()

public string GetName()

Returns

string

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

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

NewFromPointer(nint, bool)

Creates a new managed OsxAppInfo instance for a given pointer.

public static OsxAppInfo NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

OsxAppInfo

NewWithProperties(ConstructArgument[])

Creates a new OsxAppInfo and sets the properties specified by the construct arguments.

public static OsxAppInfo NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

OsxAppInfo

RemoveSupportsType(string)

public bool RemoveSupportsType(string contentType)

Parameters

contentType string

Returns

bool

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()

public bool ShouldShow()

Returns

bool

SupportsFiles()

public bool SupportsFiles()

Returns

bool

SupportsUris()

public bool SupportsUris()

Returns

bool