In some cases, the operating system will prompt the user to see if they actually want to switch apps. private async void launchURI_Click(object sender, RoutedEventArgs e) Use the return result to see if the call succeeded, as shown in the following example. If you attempt to launch a URI and your app isn't in the foreground, the launch will fail and your error callback will be invoked.įirst create a System.Uri object to represent the URI, then pass that to the LaunchUriAsync method. The user must always take some action to initiate a URI launch. To meet this requirement, make sure that you tie all URI launches directly to the UI of your app. This requirement helps ensure that the user remains in control. When you call this method, your app must be the foreground app, that is, it must be visible to the user. Use the LaunchUriAsync method to launch a URI. For more info, see Recommend an app if one is not available to handle the URI. In cases where more than one app may have registered the same URI scheme, your app can recommend a specific app to be launched.
#NOVATION LAUNCHPAD APP ADD SAMPLES FULL#
For the full list of reserved URI schemes, see Handle URI activation. Registrations of reserved URI schemes are ignored. The exception to this is for reserved URI schemes. More than one app can register to handle the same URI scheme. The user determines which app is launched. In general, your app can't select the app that is launched. If there is no app installed to handle that URI, you can recommend an app for the user to install. You can also launch custom URI schemes too. This topic describes the following URI schemes built into Windows: URI Schemeįor example, the following URI opens the default browser and displays the Bing web site. Just as you can start a new email using mailto:, you can open the default web browser using http: URI schemes let you open apps by clicking hyperlinks. For more info about registering a custom URI scheme and handling URI activation, see Handle URI activation. This topic also provides an overview of the many URI schemes built into Windows.
![novation launchpad app add samples novation launchpad app add samples](https://i.pinimg.com/736x/bd/44/7e/bd447edac5adb22500dcb0dad5017ef3.jpg)
URIs allow you to launch another app to perform a specific task.
#NOVATION LAUNCHPAD APP ADD SAMPLES HOW TO#
Learn how to launch the default app for a Uniform Resource Identifier (URI).