Interface BrowserControlsEventsListener


public interface BrowserControlsEventsListener
The listener interface for receiving browser controls events. The class that is interested in processing a browser controls events implements this interface, and pass this object into constructor of that class. When the browser controls event occurs, that object's appropriate method is invoked.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check state if browser can navigate back.
    boolean
    Check state if browser can navigate forward.
    void
    Close browser.
    Get the current browser URL.
    void
    Perform browser "back" operation.
    void
    Perform browser "forward" operation.
    void
    Perform browser "relaod" operation.
  • Method Details

    • closeBrowser

      void closeBrowser()
      Close browser.
    • onGoBack

      void onGoBack()
      Perform browser "back" operation.
    • onGoForward

      void onGoForward()
      Perform browser "forward" operation.
    • onRelaod

      void onRelaod()
      Perform browser "relaod" operation.
    • canGoBack

      boolean canGoBack()
      Check state if browser can navigate back.
      Returns:
      true, if successful
    • canGoForward

      boolean canGoForward()
      Check state if browser can navigate forward.
      Returns:
      true, if successful
    • getCurrentURL

      String getCurrentURL()
      Get the current browser URL.
      Returns:
      the current URL