completeRequest

open fun completeRequest(@NonNull intent: Intent, @NonNull pendingRequest: String): BrowserSwitchFinalResult

Completes the browser switch flow for both Auth Tab and Custom Tabs fallback scenarios. This method first checks if we have a result from the Auth Tab callback, and returns it if available. Otherwise, it follows the Custom Tabs flow.

See Auth Tab Fallback Documentation for details on when Custom Tabs fallback is required

IMPORTANT: When using Auth Tab with SingleTop activities, you must call this method in both onNewIntent()andonResume() to ensure the result is properly processed regardless of which launch mode is used.

Return

a BrowserSwitchFinalResult

Parameters

intent

the intent to return to your application containing a deep link result

pendingRequest

the pending request string returned from BrowserSwitchStartResult.Started