LauncherExtensions Class
Definition
public class LauncherExtensions
Methods
| Name | Description |
|---|---|
| LaunchDirectoryInfoAsync | Starts the default app associated with the specified storage directory (folder). |
| LaunchFileInfoAsync | Starts the default app associated with the specified storage file. |
LaunchDirectoryInfoAsync Method
Starts the default app associated with the specified storage directory (folder).
public System.Threading.Tasks.Task<bool> LaunchDirectoryInfoAsync(Avalonia.Platform.Storage.ILauncher launcher, System.IO.DirectoryInfo directoryInfo)
Parameters
launcher Avalonia.Platform.Storage.ILauncher
ILauncher instance.
directoryInfo System.IO.DirectoryInfo
The directory.
Returns
System.Threading.Tasks.Task<bool>
LaunchFileInfoAsync Method
Starts the default app associated with the specified storage file.
public System.Threading.Tasks.Task<bool> LaunchFileInfoAsync(Avalonia.Platform.Storage.ILauncher launcher, System.IO.FileInfo fileInfo)
Parameters
launcher Avalonia.Platform.Storage.ILauncher
ILauncher instance.
fileInfo System.IO.FileInfo
The file.
Returns
System.Threading.Tasks.Task<bool>