Launcher.OpenAsync 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
OpenAsync(String) |
Launches the app specified by the uri scheme |
OpenAsync(Uri) |
Launches the app specified by the uri scheme |
OpenAsync(OpenFileRequest) |
Requests to open a file in an application based on content type. |
OpenAsync(String)
Launches the app specified by the uri scheme
public static System.Threading.Tasks.Task OpenAsync (string uri);
Parameters
- uri
- System.String
string uri scheme
Returns
Remarks
May throw System.UriFormatException if uri is malformed. Verify if the uri scheme is supported before calling this method
Applies to
OpenAsync(Uri)
Launches the app specified by the uri scheme
public static System.Threading.Tasks.Task OpenAsync (Uri uri);
Parameters
- uri
- System.Uri
uri scheme
Returns
Remarks
May throw System.UriFormatException if uri is malformed. Verify if the uri scheme is supported before calling this method
Applies to
OpenAsync(OpenFileRequest)
Requests to open a file in an application based on content type.
public static System.Threading.Tasks.Task OpenAsync (Xamarin.Essentials.OpenFileRequest request);
Parameters
- request
- OpenFileRequest
Request that contains information on the file to open.