Interface CefriumFocusHandler
public interface CefriumFocusHandler
Focus coordination between the web view and native Android views, mirroring
CEF's
CefFocusHandler. All methods are default. Register with
CefriumBrowser.setFocusHandler(CefriumFocusHandler).
Delivered on the browser UI thread.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidThe browser received focus.default booleanonSetFocus(int source) The browser component is requesting focus.default voidonTakeFocus(boolean next) The browser is giving up focus (tab-out).
-
Method Details
-
onTakeFocus
default void onTakeFocus(boolean next) The browser is giving up focus (tab-out).- Parameters:
next- True to focus the next control, false for the previous.
-
onSetFocus
default boolean onSetFocus(int source) The browser component is requesting focus.- Parameters:
source- Chromiumcef_focus_source_t.- Returns:
- true to cancel the focus change.
-
onGotFocus
default void onGotFocus()The browser received focus.
-