public static interface

BrowserInterface.Header

com.usebutton.sdk.purchasepath.BrowserInterface.Header

Class Overview

Header chrome and title bar for the embedded browser.

Summary

Public Methods
abstract int getBackgroundColor()
Returns the current background color of the browser header.
abstract BrowserText getSubtitle()
Retrieves the current subtitle of the header of the browser.
abstract int getTintColor()
Returns the current tint color of the browser header.
abstract BrowserText getTitle()
Retrieves the current title of the header of the browser.
abstract void setBackgroundColor(int color)
Sets the background color for the browser header.
abstract void setCustomActionView(View view)
Add a view given the to the header of the browser.
abstract void setTintColor(int color)
Sets the tint (accent) color for the browser header.

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.