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 Type
    Method
    Description
    default void
    The browser received focus.
    default boolean
    onSetFocus(int source)
    The browser component is requesting focus.
    default void
    onTakeFocus(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 - Chromium cef_focus_source_t.
      Returns:
      true to cancel the focus change.
    • onGotFocus

      default void onGotFocus()
      The browser received focus.