研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >序列化 >程序 >ProcedureSerializer >保存
Serialization.procedures.ProcedureSerializer.save() 方法
将指定工作区的过程模型序列化。
Signature:
save(workspace: Workspace): State[] | null;
参数
返回:
州 [] |null
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-10-15。
[null,null,["最后更新时间 (UTC):2024-10-15。"],[[["The `serialization.procedures.ProcedureSerializer.save()` method serializes procedure models within a given workspace."],["It takes a Blockly Workspace as input and returns an array of State objects representing the serialized procedures or null if there are no procedures to serialize."],["This method is crucial for saving and loading the state of custom procedures defined by users within a Blockly workspace."]]],["The `ProcedureSerializer.save()` method serializes procedure models within a specified workspace. It takes a `Workspace` object as input and returns an array of `State` objects or `null`. This method's core function is to capture and store the current state of procedures defined in the workspace. The return value represents the serialized state of those procedure models.\n"]]