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
ContextOptional Android.Content.Context to provide on subsequent callbacks.
Fields
IsNewTask
Whether this browser should launch a new Android Task.
protected bool IsNewTask
Field Value
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
BrowserOptionscancellationToken
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
UriUri address to open in the browser.
context
ContextOptional Android.Content.Context associated with the browser.