android-components / mozilla.components.concept.toolbar / Toolbar / setOnUrlCommitListener

setOnUrlCommitListener

abstract fun setOnUrlCommitListener(listener: (String) -> Boolean): Unit (source)

Registers the given function to be invoked when the user selected a new URL i.e. is done editing.

If the function returns true then the toolbar will automatically switch to “display mode”. Otherwise it remains in “edit mode”.

Parameters

listener - the listener function