C# Класс InTheHand.System.Launcher

Starts the default app associated with the specified file or URI.
Показать файл Открыть проект

Открытые методы

Метод Описание
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)-

Приватные методы

Метод Описание
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

Описание методов

LaunchFileAsync() публичный статический Метод

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.
Результат Task

LaunchFolderAsync() публичный статический Метод

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.
Результат Task

LaunchUriAsync() публичный статический Метод

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.
Результат Task

QueryUriSupportAsync() публичный статический Метод

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.
Результат Task