Interface: AndroidOptions
Auth Tab is used by default on supported browsers. Custom Tabs are only used as a fallback when Auth Tab is not available. See Google's Auth Tab documentation for more details.
Properties
isAnimated
• Optional isAnimated: boolean
Controls the animation when the Custom Tabs is shown or hidden via a slide animation.
Auth Tab Note: Only applies when falling back to Custom Tabs (Auth Tab does not support custom start/exit animations).
Default
_10true
isIncognito
• Optional isIncognito: boolean
Controls if the Custom Tabs is launched in incognito mode. This will disable the sharing of cookies between the browser and the Custom Tabs. You will have to manually store and retrieve the tokens in the KeyStore if you want to use them on subsequent sessions without re-authenticating.
Note: This option is not guaranteed to be available to all users.
Android requires that users manually enable incognito third-party use(chrome://flags/#cct-incognito-available-to-third-party) in Chrome's settings.
Auth Tab Note: Maps to setEphemeralBrowsingEnabled when using Auth Tab.
Default
_10false
navigationBarColor
• Optional navigationBarColor: string
Specifies the navigation bar color. Takes a string that can be parsed as a color by android.graphics.Color.parseColor.
navigationBarDividerColor
• Optional navigationBarDividerColor: string
Specifies the navigation bar divider color. Takes a string that can be parsed as a color by android.graphics.Color.parseColor.
secondaryToolbarColor
• Optional secondaryToolbarColor: string
Specifies the secondary toolbar color. Takes a string that can be parsed as a color by android.graphics.Color.parseColor.
Auth Tab Note: Only applies when falling back to Custom Tabs.
showDefaultShareMenuItem
• Optional showDefaultShareMenuItem: boolean
Shows the default share menu item in the action bar.
Auth Tab Note: Only applies when falling back to Custom Tabs.
Default
_10false
toolbarColor
• Optional toolbarColor: string
Specifies the toolbar color. Takes a string that can be parsed as a color by android.graphics.Color.parseColor.