Interface BrowserListener


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

    Modifier and Type
    Method
    Description
    default void
    onMessage(String message, Consumer<String> callback)
    Called when the page sends a message by calling bmMessage(message, optional callback).
    default void
    onPageLoaded(String url, int statusCode)
     
  • Method Details

    • onPageLoaded

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

      default void onMessage(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.