Skip to main content

LaunchFileAsync Method

Starts the default app associated with the specified storage file or folder.

Definition

Namespace: Avalonia.Platform.Storage
Assembly: Avalonia.Base (in Avalonia.Base.dll)

Task<bool> LaunchFileAsync(
IStorageItem storageItem
)
View Source

Parameters

  IStorageItem
The file or folder.

Return Value

Task(Boolean)
True, if launch operation was successful. False, if unsupported or failed.

See Also

Reference

ILauncher Interface
Avalonia.Platform.Storage Namespace