interface Toolbar
(source)
Interface to be implemented by components that provide browser toolbar functionality.
interface Action
Generic interface for actions to be added to the toolbar. |
|
open class ActionButton : Action
An action button to be added to the toolbar. |
|
open class ActionImage : Action
An action that just shows a static, non-clickable image. |
|
open class ActionSpace : Action
An "empty" action with a desired width to be used as "placeholder". |
|
open class ActionToggleButton : Action
An action button with two states, selected and unselected. When the button is pressed, the state changes automatically. |
|
interface OnEditListener
Listener to be invoked when the user edits the URL. |
|
enum class SiteSecurity |
abstract var siteSecure: SiteSecurity
Sets/Gets the site security to be displayed on the toolbar. |
|
abstract var url: String
Sets/Gets the URL to be displayed on the toolbar. |
abstract fun addBrowserAction(action: Action): Unit
Adds an action to be displayed on the right side of the toolbar in display mode. |
|
abstract fun addNavigationAction(: Action): Unit
Adds an action to be displayed on the far left side of the URL in display mode. |
|
abstract fun addPageAction(action: Action): Unit
Adds an action to be displayed on the right side of the URL in display mode. |
|
open fun asView(): View
Casts this toolbar to an Android View object. |
|
abstract fun displayMode(): Unit
Switches to URL displaying mode (from editing mode) if supported by the toolbar implementation. |
|
abstract fun displayProgress(progress: Int): Unit
Displays the given loading progress. Expects values in the range 0,100. |
|
abstract fun editMode(): Unit
Switches to URL editing mode (from displaying mode) if supported by the toolbar implementation. |
|
abstract fun onBackPressed(): Boolean
Should be called by an activity when the user pressed the back key of the device. |
|
abstract fun setOnEditListener(listener: OnEditListener): Unit
Registers the given listener to be invoked when the user edits the URL. |
|
abstract fun setOnUrlCommitListener(listener: (String) -> Unit): Unit
Registers the given function to be invoked when the user selected a new URL i.e. is done editing. |
|
abstract fun setSearchTerms(searchTerms: String): Unit
Displays the currently used search terms as part of this Toolbar. |
class BrowserToolbar : ViewGroup, Toolbar
A customizable toolbar for browsers. |