C# Class InTheHand.System.Launcher

Starts the default app associated with the specified file or URI.
Show file Open project: inthehand/Charming

Public Methods

Method Description
LaunchFileAsync ( IStorageFile file ) : Task

Starts the app associated with the specified file.

PlatformVersion supported iOSiOS 9.0 and later Windows UWPWindows 10 Windows StoreWindows 8.1 or later Windows Phone StoreWindows Phone 8.1 or later Windows Phone SilverlightWindows Phone 8.0 or later Windows (Desktop Apps)Windows Vista or later

LaunchFolderAsync ( IStorageFolder folder ) : Task

Launches File Explorer and displays the contents of the specified folder.

PlatformVersion supported Windows UWPWindows 10 Windows (Desktop Apps)Windows Vista or later

LaunchUriAsync ( Uri uri ) : Task

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

PlatformVersion supported iOSiOS 9.0 and later macOSOS X 10.7 and later tvOStvOS 9.0 and later Windows UWPWindows 10 Windows StoreWindows 8.1 or later Windows Phone StoreWindows Phone 8.1 or later Windows Phone SilverlightWindows Phone 8.0 or later Windows (Desktop Apps)Windows Vista or later

QueryUriSupportAsync ( Uri uri, LaunchQuerySupportType launchQuerySupportType ) : Task

Asynchronously query whether an app can be activated for the specified URI and launch type.

PlatformVersion supported Android- iOSiOS 9.0 and later tvOStvOS 9.0 and later Windows UWPWindows 10 Windows Store- Windows Phone Store- Windows Phone Silverlight- Windows (Desktop Apps)-

Private Methods

Method Description
Launch ( string applicationName, string commandLine ) : bool
LaunchUriAsync ( Uri uri, LauncherOptions options ) : Task

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

PlatformVersion supported iOSiOS 9.0 and later macOSOS X 10.7 and later tvOStvOS 9.0 and later Windows UWPWindows 10 Windows StoreWindows 8.1 or later Windows Phone StoreWindows Phone 8.1 or later Windows Phone SilverlightWindows Phone 8.0 or later Windows (Desktop Apps)Windows Vista or later

ViewControllerForPreview ( UIDocumentInteractionController c ) : UIViewController

Method Details

LaunchFileAsync() public static method

Starts the app associated with the specified file.
PlatformVersion supported iOSiOS 9.0 and later Windows UWPWindows 10 Windows StoreWindows 8.1 or later Windows Phone StoreWindows Phone 8.1 or later Windows Phone SilverlightWindows Phone 8.0 or later Windows (Desktop Apps)Windows Vista or later
public static LaunchFileAsync ( IStorageFile file ) : Task
file IStorageFile The file.
return Task

LaunchFolderAsync() public static method

Launches File Explorer and displays the contents of the specified folder.
PlatformVersion supported Windows UWPWindows 10 Windows (Desktop Apps)Windows Vista or later
public static LaunchFolderAsync ( IStorageFolder folder ) : Task
folder IStorageFolder The folder to display in File Explorer.
return Task

LaunchUriAsync() public static method

Starts the default app associated with the URI scheme name for the specified URI.
PlatformVersion supported iOSiOS 9.0 and later macOSOS X 10.7 and later tvOStvOS 9.0 and later Windows UWPWindows 10 Windows StoreWindows 8.1 or later Windows Phone StoreWindows Phone 8.1 or later Windows Phone SilverlightWindows Phone 8.0 or later Windows (Desktop Apps)Windows Vista or later
public static LaunchUriAsync ( Uri uri ) : Task
uri System.Uri The URI.
return Task

QueryUriSupportAsync() public static method

Asynchronously query whether an app can be activated for the specified URI and launch type.
PlatformVersion supported Android- iOSiOS 9.0 and later tvOStvOS 9.0 and later Windows UWPWindows 10 Windows Store- Windows Phone Store- Windows Phone Silverlight- Windows (Desktop Apps)-
public static QueryUriSupportAsync ( Uri uri, LaunchQuerySupportType launchQuerySupportType ) : Task
uri System.Uri The URI.
launchQuerySupportType LaunchQuerySupportType The type of launch for which to query support.
return Task