Table of Contents

Class AndroidBrowserBase

Namespace
Auth0.OidcClient
Assembly
Auth0.OidcClient.dll

Provides common IBrowser logic for Android.

public abstract class AndroidBrowserBase : Object, IBrowser
Inheritance
AndroidBrowserBase
Implements
IBrowser
Derived

Constructors

AndroidBrowserBase(Context)

Default constructor for AndroidBrowserBase that provides assignment of context and IsNewTask when called by subclasses.

protected AndroidBrowserBase(Context context = null)

Parameters

context Context

Optional Android.Content.Context to provide on subsequent callbacks.

Fields

IsNewTask

Whether this browser should launch a new Android Task.

protected bool IsNewTask

Field Value

bool

context

The Android.Content.Context associated with this browser.

protected Context context

Field Value

Context

Methods

InvokeAsync(BrowserOptions, CancellationToken)

public Task<BrowserResult> InvokeAsync(BrowserOptions options, CancellationToken cancellationToken = null)

Parameters

options BrowserOptions
cancellationToken CancellationToken

Returns

Task<BrowserResult>

OpenBrowser(Uri, Context)

Open a web browser with the given uri.

protected abstract void OpenBrowser(Uri uri, Context context = null)

Parameters

uri Uri

Uri address to open in the browser.

context Context

Optional Android.Content.Context associated with the browser.