Skip to main content

LauncherExtensions Class

Definition​

Assembly:Avalonia.Base
Package:Avalonia
public class LauncherExtensions

Inheritance: object -> LauncherExtensions

Methods​

NameDescription
LaunchDirectoryInfoAsyncStarts the default app associated with the specified storage directory (folder).
LaunchFileInfoAsyncStarts 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>