Scratch for Java

ExtensionContext::runOnGameThread()

Browser availability: desktop-only.

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

Runs a task at the start of the next tick, before input.

Syntax

Java

.runOnGameThread(task)

Parameters

Name Data Type Description
task Runnable

Return

void

runOnGameThread()

Create Shareable URL

Select Sections