public class MsalChromeCustomTabManager
extends java.lang.Object
| Constructor and Description |
|---|
MsalChromeCustomTabManager(android.app.Activity activity)
Constructor of MsalChromeCustomTabManager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bindCustomTabsService()
Method to bind Chrome
androidx.browser.customtabs.CustomTabsService. |
void |
launchChromeTabOrBrowserForUrl(java.lang.String requestUrl)
Launches a Chrome Custom tab if available else Chrome Browser for the URL.
|
void |
unbindCustomTabsService()
Method to unbind Chrome
androidx.browser.customtabs.CustomTabsService. |
public MsalChromeCustomTabManager(android.app.Activity activity)
activity - Instance of calling activity.public void bindCustomTabsService()
androidx.browser.customtabs.CustomTabsService.
Waits until the MsalCustomTabsServiceConnection is connected or the
CUSTOM_TABS_MAX_CONNECTION_TIMEOUT is timed out.public void unbindCustomTabsService()
androidx.browser.customtabs.CustomTabsService.public void launchChromeTabOrBrowserForUrl(java.lang.String requestUrl)
bindCustomTabsService()
before calling this method.requestUrl - URL to be loaded.