Interface BrowserListener


public interface BrowserListener
Threading. Methods here are called from CEF's native thread.
  • Method Details

    • onPageLoaded

      default void onPageLoaded(BrowserPanel panel, String url, int statusCode)
    • onMessage

      default void onMessage(BrowserPanel panel, String message, @Nonnull Consumer<String> callback)
      Called when the page sends a message by calling bmMessage(message, optional callback).
      Parameters:
      callback - used to send the response back to the page if it was set in bmMessage above. Otherwise, calling has no effect. Can be freely called from any thread at any time, but only once.