Scratch for Java

Stage::whenBackdropSwitches()

This method is called when the backdrop switches to the specified name. Override this method to add custom behavior.

Syntax

Java

.whenBackdropSwitches(name)

Parameters

Name Data Type Description
name String the name of the backdrop to switch to

Return

void

whenBackdropSwitches()