public static final class CloseOptions.Builder
extends java.lang.Object
CloseOptions
.
Builders are created by invoking CloseOptions.newBuilder()
. Each of the setter methods
modifies the state of the builder and returns the same instance. Builders are not thread-safe
and should not be used concurrently from multiple threads without external synchronization.
Modifier and Type | Method and Description |
---|---|
CloseOptions |
build()
Returns a new
CloseOptions instance built from the current state of this
builder. |
CloseOptions.Builder |
fireBeforeUnload()
Specifies whether the
beforeunload and unload JavaScript events should be
fired if they were registered when closing a browser instance. |
public CloseOptions.Builder fireBeforeUnload()
beforeunload
and unload
JavaScript events should be
fired if they were registered when closing a browser instance.public CloseOptions build()
CloseOptions
instance built from the current state of this
builder.CloseOptions
instance