Launcher.TryOpenAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TryOpenAsync(String) |
Launches the app specified by the uri scheme and returns if it was supported or not |
TryOpenAsync(Uri) |
Launches the app specified by the uri scheme and returns if it was supported or not |
TryOpenAsync(String)
Launches the app specified by the uri scheme and returns if it was supported or not
public static System.Threading.Tasks.Task<bool> TryOpenAsync (string uri);
Parameters
- uri
- String
string uri scheme
Returns
True if opening is supported, otherwise false
Remarks
May throw System.UriFormatException if uri is malformed
Applies to
TryOpenAsync(Uri)
Launches the app specified by the uri scheme and returns if it was supported or not
public static System.Threading.Tasks.Task<bool> TryOpenAsync (Uri uri);
Parameters
- uri
- Uri
uri scheme
Returns
True if opening is supported, otherwise false
Remarks
May throw System.UriFormatException if uri is malformed
Applies to
Xamarin.Essentials
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for