| java.lang.Object | |
| ↳ | android.support.customtabs.CustomTabsIntent.Builder |
Builder class for CustomTabsIntent objects.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a
CustomTabsIntent.Builder object associated with no
CustomTabsSession.
| |||||||||||
Creates a
CustomTabsIntent.Builder object associated with a given
CustomTabsSession.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds a menu item.
| |||||||||||
Combines all the options that have been set and returns a new
CustomTabsIntent
object.
| |||||||||||
Set the action button.
| |||||||||||
Sets the Close button icon for the custom tab.
| |||||||||||
Sets the exit animations,
| |||||||||||
Sets whether the title should be shown in the custom tab.
| |||||||||||
Sets the start animations,
| |||||||||||
Sets the toolbar color.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a CustomTabsIntent.Builder object associated with no
CustomTabsSession.
Creates a CustomTabsIntent.Builder object associated with a given
CustomTabsSession.
Guarantees that the Intent will be sent to the same component as the one the
session is associated with.
| session | The session to associate this Builder with. |
|---|
Adds a menu item.
| label | Menu label. |
|---|---|
| pendingIntent | Pending intent delivered when the menu item is clicked. |
Combines all the options that have been set and returns a new CustomTabsIntent
object.
Set the action button.
| icon | The icon. |
|---|---|
| description | The description for the button. To be used for accessibility. |
| pendingIntent | pending intent delivered when the button is clicked. |
Sets the Close button icon for the custom tab.
| icon | The icon Bitmap
|
|---|
Sets the exit animations,
| context | Application context. |
|---|---|
| enterResId | Resource ID of the "enter" animation for the application. |
| exitResId | Resource ID of the "exit" animation for the browser. |
Sets whether the title should be shown in the custom tab.
| showTitle | Whether the title should be shown. |
|---|
Sets the start animations,
| context | Application context. |
|---|---|
| enterResId | Resource ID of the "enter" animation for the browser. |
| exitResId | Resource ID of the "exit" animation for the application. |
Sets the toolbar color.
| color | Color
|
|---|