Interface BeforeUnloadCallback.Params

Enclosing interface:
BeforeUnloadCallback

public static interface BeforeUnloadCallback.Params
The parameters of the BeforeUnloadCallback.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Returns true if the web page is going to be reloaded, false when a new navigation is started.
    default String
    Returns a string that represents the localized text of the "Leave" action.
    default String
    Returns a string that represents the localized text of the before unload warning.
    default String
    Returns a string that represents the localized text of the "Stay" action.
    default String
    Returns a string that represents the localized dialog title.
  • Method Details

    • title

      default String title()
      Returns a string that represents the localized dialog title.
    • message

      default String message()
      Returns a string that represents the localized text of the before unload warning.
    • stayActionText

      default String stayActionText()
      Returns a string that represents the localized text of the "Stay" action.
    • leaveActionText

      default String leaveActionText()
      Returns a string that represents the localized text of the "Leave" action.
    • isReload

      default boolean isReload()
      Returns true if the web page is going to be reloaded, false when a new navigation is started.