belongs to Maven artifact com.android.support:customtabs:28.0.0-alpha1
CustomTabsIntent.Builder
public
static
final
class
CustomTabsIntent.Builder
extends Object
java.lang.Object | |
↳ | android.support.customtabs.CustomTabsIntent.Builder |
Builder class for CustomTabsIntent
objects.
Summary
Public constructors | |
---|---|
CustomTabsIntent.Builder()
Creates a |
|
CustomTabsIntent.Builder(CustomTabsSession session)
Creates a |
Public methods | |
---|---|
CustomTabsIntent.Builder
|
addDefaultShareMenuItem()
Adds a default share item to the menu. |
CustomTabsIntent.Builder
|
addMenuItem(String label, PendingIntent pendingIntent)
Adds a menu item. |
CustomTabsIntent.Builder
|
addToolbarItem(int id, Bitmap icon, String description, PendingIntent pendingIntent)
This method was deprecated in API level 24.1.0. Use CustomTabsIntent.Builder#setSecondaryToolbarViews(RemoteViews, int[], PendingIntent). |
CustomTabsIntent
|
build()
Combines all the options that have been set and returns a new |
CustomTabsIntent.Builder
|
enableUrlBarHiding()
Enables the url bar to hide as the user scrolls down on the page. |
CustomTabsIntent.Builder
|
setActionButton(Bitmap icon, String description, PendingIntent pendingIntent, boolean shouldTint)
Sets the action button that is displayed in the Toolbar. |
CustomTabsIntent.Builder
|
setActionButton(Bitmap icon, String description, PendingIntent pendingIntent)
Sets the action button that is displayed in the Toolbar with default tinting behavior. |
CustomTabsIntent.Builder
|
setCloseButtonIcon(Bitmap icon)
Sets the Close button icon for the custom tab. |
CustomTabsIntent.Builder
|
setExitAnimations(Context context, int enterResId, int exitResId)
Sets the exit animations. |
CustomTabsIntent.Builder
|
setInstantAppsEnabled(boolean enabled)
Sets whether Instant Apps is enabled for this Custom Tab. |
CustomTabsIntent.Builder
|
setSecondaryToolbarColor(int color)
Sets the color of the secondary toolbar. |
CustomTabsIntent.Builder
|
setSecondaryToolbarViews(RemoteViews remoteViews, int[] clickableIDs, PendingIntent pendingIntent)
Sets the remote views displayed in the secondary toolbar in a custom tab. |
CustomTabsIntent.Builder
|
setShowTitle(boolean showTitle)
|