Share via


Browser.OpenAsync Method

Definition

Overloads

OpenAsync(String)

Open the browser to specified uri.

OpenAsync(Uri)

Open the browser to specified uri.

OpenAsync(String, BrowserLaunchMode)

Open the browser to specified uri.

OpenAsync(String, BrowserLaunchOptions)

Open the browser to specified uri.

OpenAsync(Uri, BrowserLaunchMode)

Open the browser to specified uri.

OpenAsync(Uri, BrowserLaunchOptions)

Open the browser to specified uri.

OpenAsync(String)

Open the browser to specified uri.

public static System.Threading.Tasks.Task OpenAsync (string uri);

Parameters

uri
System.String

Uri to launch.

Returns

System.Threading.Tasks.Task

Completed task when browser is launched, but not necessarily closed. Result indicates if launching was successful or not.

Applies to

OpenAsync(Uri)

Open the browser to specified uri.

public static System.Threading.Tasks.Task OpenAsync (Uri uri);

Parameters

uri
System.Uri

Uri to launch.

Returns

System.Threading.Tasks.Task

Completed task when browser is launched, but not necessarily closed. Result indicates if launching was successful or not.

Applies to

OpenAsync(String, BrowserLaunchMode)

Open the browser to specified uri.

public static System.Threading.Tasks.Task OpenAsync (string uri, Xamarin.Essentials.BrowserLaunchMode launchMode);

Parameters

uri
System.String

Uri to launch.

launchMode
BrowserLaunchMode

How to launch the browser.

Returns

System.Threading.Tasks.Task

Completed task when browser is launched, but not necessarily closed. Result indicates if launching was successful or not.

Applies to

OpenAsync(String, BrowserLaunchOptions)

Open the browser to specified uri.

public static System.Threading.Tasks.Task OpenAsync (string uri, Xamarin.Essentials.BrowserLaunchOptions options);

Parameters

uri
System.String

Uri to launch.

options
BrowserLaunchOptions

Launch options for the browser.

Returns

System.Threading.Tasks.Task

Completed task when browser is launched, but not necessarily closed. Result indicates if launching was successful or not.

Applies to

OpenAsync(Uri, BrowserLaunchMode)

Open the browser to specified uri.

public static System.Threading.Tasks.Task OpenAsync (Uri uri, Xamarin.Essentials.BrowserLaunchMode launchMode);

Parameters

uri
System.Uri

Uri to launch.

launchMode
BrowserLaunchMode

How to launch the browser.

Returns

System.Threading.Tasks.Task

Completed task when browser is launched, but not necessarily closed. Result indicates if launching was successful or not.

Applies to

OpenAsync(Uri, BrowserLaunchOptions)

Open the browser to specified uri.

public static System.Threading.Tasks.Task<bool> OpenAsync (Uri uri, Xamarin.Essentials.BrowserLaunchOptions options);

Parameters

uri
System.Uri

Uri to launch.

options
BrowserLaunchOptions

Launch options for the browser.

Returns

System.Threading.Tasks.Task<System.Boolean>

Completed task when browser is launched, but not necessarily closed. Result indicates if launching was successful or not.

Applies to