Scratch for Java

ExtensionContext::onStageCreated()

Browser availability: desktop-only.

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

A stage was made (on the thread that made it, usually the game thread or main).

Syntax

Java

.onStageCreated(hook)

Parameters

Name Data Type Description
hook Consumer<Stage>

Return

void

onStageCreated()

Create Shareable URL

Select Sections