Interface BeforeUnloadCallback.Params
- Enclosing interface:
- BeforeUnloadCallback
public static interface BeforeUnloadCallback.Params
The parameters of the
BeforeUnloadCallback.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanisReload()Returnstrueif the web page is going to be reloaded,falsewhen a new navigation is started.default StringReturns a string that represents the localized text of the "Leave" action.default Stringmessage()Returns a string that represents the localized text of the before unload warning.default StringReturns a string that represents the localized text of the "Stay" action.default Stringtitle()Returns a string that represents the localized dialog title.
-
Method Details
-
title
Returns a string that represents the localized dialog title. -
message
Returns a string that represents the localized text of the before unload warning. -
stayActionText
Returns a string that represents the localized text of the "Stay" action. -
leaveActionText
Returns a string that represents the localized text of the "Leave" action. -
isReload
default boolean isReload()Returnstrueif the web page is going to be reloaded,falsewhen a new navigation is started.
-