BrowserInterface.Header | Button SDK for Android v7.0.0

Package Index

Interfaces

Classes

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

public abstract BrowserText getSubtitle()

Retrieves the current subtitle of the header of the browser.

Returns

public abstract int getTintColor()

Returns the current tint color of the browser header.

Returns

public abstract BrowserText getTitle()

Retrieves the current title of the header of the browser.

Returns

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. |