BrowserInterface.Header | Button SDK for Android v7.0.0
Package Index
- com.usebutton.sdk
- com.usebutton.sdk.action
- com.usebutton.sdk.autofill
- com.usebutton.sdk.boost
- com.usebutton.sdk.browser
- com.usebutton.sdk.configuration
- com.usebutton.sdk.context
- com.usebutton.sdk.debug
- com.usebutton.sdk.exception
- com.usebutton.sdk.impression
- com.usebutton.sdk.models
- com.usebutton.sdk.personalization
- com.usebutton.sdk.purchasepath
- com.usebutton.sdk.user
Interfaces
- BrowserInterface
- BrowserInterface.Footer
- BrowserInterface.Header
- BrowserPage
- BrowserPage.DomResultListener
- CardList
- CheckoutPage
- ProductPage
- PurchasePage
- PurchasePath.Listener
- PurchasePathExtension
- PurchasePathInterface
- PurchasePathListener
Classes
- BrowserChromeClient
- CallToAction
- Card
- Commission
- Product
- PurchasePath
- PurchasePathRequest
- TextCard
- TextCard.Builder
Enums
BrowserInterface.Header
Class Overview
Header chrome and title bar for the embedded browser.
Summary
| Public Methods |
|---|
| abstract int |
| abstract BrowserText |
| abstract int |
| abstract BrowserText |
| abstract void |
| abstract void |
| abstract void |
Public Methods
public abstract int getBackgroundColor()
Returns the current background color of the browser header.
Returns
- The hex value of the header background color.
public abstract BrowserText getSubtitle()
Retrieves the current subtitle of the header of the browser.
Returns
- the subtitle of the header.
public abstract int getTintColor()
Returns the current tint color of the browser header.
Returns
- The hex value of the tint (accent) color.
public abstract BrowserText getTitle()
Retrieves the current title of the header of the browser.
Returns
- the title of the header.
public abstract void setBackgroundColor(int color)
Sets the background color for the browser header.
Parameters
| color | The hex value of the background color. |
public abstract void setCustomActionView(View view)
Add a view given the to the header of the browser. You should NOT set a click listener to the provided view since it will be overwritten. Use the
setBrowserChromeClient(BrowserChromeClient) method to receive a callback to a click on the custom view. Passing in a null view will remove the custom button.
Parameters
| view | View to be added to the header. |
public abstract void setTintColor(int color)
Sets the tint (accent) color for the browser header. The tint is applied to non-text UI elements.
Parameters
| color | The hex value of the tint (accent) color. |