Scratch for Java

Window::setWhenExits()

Sets a custom handler to be executed when the window exits.

Syntax

Java

.setWhenExits(runnable)

Parameters

Name Data Type Description
runnable WhenExitsHandler the custom handler to be executed on exit

Return

void

setWhenExits()

Create Shareable URL

Select Sections