Interface BeforeUnloadCallback.Params
- Enclosing interface:
- BeforeUnloadCallback
public static interface BeforeUnloadCallback.Params
The parameters of the
BeforeUnloadCallback
.-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
isReload()
Returnstrue
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
message()
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
title()
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()Returnstrue
if the web page is going to be reloaded,false
when a new navigation is started.
-