Scratch for Java

ExtensionContext::onExit()

Browser availability: desktop-only.

This API requires the desktop runtime. Browser declarations may report the limitation without performing the operation.

At the end of the program, after whenExits(). Game thread.

Syntax

Java

.onExit(hook)

Parameters

Name Data Type Description
hook Runnable

Return

void

onExit()

Create Shareable URL

Select Sections