Table of Contents

Interface ILauncher

Namespace
Avalonia.Platform.Storage
Assembly
Avalonia.Base.dll

Starts the default app associated with the specified file or URI.

public interface ILauncher
Extension Methods

Methods

LaunchFileAsync(IStorageItem)

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

Task<bool> LaunchFileAsync(IStorageItem storageItem)

Parameters

storageItem IStorageItem

The file or folder.

Returns

Task<bool>

True, if launch operation was successful. False, if unsupported or failed.

LaunchUriAsync(Uri)

Starts the default app associated with the URI scheme name for the specified URI.

Task<bool> LaunchUriAsync(Uri uri)

Parameters

uri Uri

The URI.

Returns

Task<bool>

True, if launch operation was successful. False, if unsupported or failed.