Scratch for Java

File::save()

Browser availability: desktop-only.

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

Saves the given object to the specified path in the default file type (JSON).

Syntax

Java

.save(path, obj)

Parameters

Name Data Type Description
path String the path where the object should be saved
obj T the object to be saved

Return

void

save()

Create Shareable URL

Select Sections