blockly > ISerializable > loadState
Methode ISerializable.loadState()
Nimmt einen serialisierbaren JSON-Wert auf und legt basierend auf diesem Wert den Status von ISerializable fest.
Unterschrift:
loadState(state: any): void;
Parameter
Parameter |
Typ |
Beschreibung |
Bundesstaat |
beliebig |
Der Status, der auf die ISerializable angewendet werden soll. |
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-11 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-09-11 (UTC)."],[[["The `loadState` method is part of the `ISerializable` interface in Blockly and is used to initialize or update an object's state."],["It accepts a single argument, `state`, which can be any JSON serializable value representing the desired state of the object."],["Calling `loadState` will apply the provided state to the `ISerializable` object, modifying its properties and internal data."],["This method does not return any value, its purpose is to modify the object in place."]]],[]]