start

open fun start(@NonNull activity: Activity, @NonNull browserSwitchOptions: BrowserSwitchOptions): BrowserSwitchStartResult

A method to provide backwards compatibility


open fun start(@NonNull activity: Activity, @NonNull browserSwitchOptions: BrowserSwitchOptions, forceChromeCustomTabs: Boolean): BrowserSwitchStartResult

Open a browser or Auth Tab with a given set of BrowserSwitchOptions from an Android activity.

Return

a BrowserSwitchStartResult.Started that should be stored and passed to completeRequest upon return to the app (for Custom Tabs fallback), or BrowserSwitchStartResult.Failure if browser could not be launched.

Parameters

activity

the activity used to start browser switch

browserSwitchOptions

BrowserSwitchOptions the options used to configure the browser switch

forceChromeCustomTabs

boolean to ensure correct flow for applications that need to support sending users to another app and back