launchCustomTabs

fun Activity.launchCustomTabs(pendingBrowserAuthenticationChallenge: BrowserAuthenticationChallenge)

Launches the custom tabs activity with the provided browser authentication challenge.

This method determines the appropriate URL and whether to use a private web browser session based on the type of BrowserAuthenticationChallenge provided. It supports OAuth user sign-in, IAP sign-in, and IAP sign-out challenges.

Additionally, if the device does not have a default browser that supports Custom Tabs, it cancels the authentication challenge with a CustomTabsNotFoundException.

Receiver

an Activity used to launch the CustomTabsIntent.

Since

200.8.0

Parameters

pendingBrowserAuthenticationChallenge

the BrowserAuthenticationChallenge containing the necessary information to complete the authentication process.


fun Activity.launchCustomTabs(pendingSignIn: OAuthUserSignIn?)

Deprecated

since 200.8.0. Use Activity.launchCustomTabs(BrowserAuthenticationChallenge) instead as it provides support for IAP sign-in/sign-out.

Replace with

Activity.launchCustomTabs(BrowserAuthenticationChallenge)

Launches the custom tabs activity with the provided authorize URL. The resulting intent will launch using a private web browser session if the pendingSignIn's OAuthUserConfiguration.preferPrivateWebBrowserSession is true.

Receiver

an Activity used to launch the CustomTabsIntent.

Since

200.2.0

Parameters

pendingSignIn

the OAuthUserSignIn that requires completion, or a null value if there is no longer a pending sign in.