blockly > Serialisierung > ISerializer > laden
Methode serialization.ISerializer.load()
Lädt den Status des Plug-ins oder Systems.
Unterschrift:
load(state: Object, workspace: Workspace): void;
Parameter
Parameter |
Typ |
Beschreibung |
Bundesstaat |
Object |
Der Status des Systems, das deserialisiert werden soll. Dieser Wert ist immer ungleich null. |
Arbeitsbereich |
Workspace |
Der Arbeitsbereich, mit dem das System zu deserialisieren ist. |
Gibt zurück:
voidm
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-09-12 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-09-12 (UTC)."],[[["The `load` method deserializes the state of a plugin or system within a Blockly workspace."],["It takes the state object and the associated workspace as input."],["The state object is always non-null, containing the system's serialized data."],["The method returns void, indicating it modifies the workspace directly."]]],["The `serialization.ISerializer.load()` method deserializes and loads the state of a plugin or system. It accepts two parameters: `state`, an object representing the system's state to be loaded, and `workspace`, a `Workspace` object indicating the workspace associated with the system being loaded. The method's function is to load this state into the specified workspace, and returns nothing (void) upon completion. The state parameter is guaranteed to be non-null.\n"]]