研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >过程 >IProcedureModel
Procedures.IProcedureModel 接口
过程的数据模型。
Signature:
export interface IProcedureModel
方法
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-12。
[null,null,["最后更新时间 (UTC):2024-09-12。"],[[["`IProcedureModel` is an interface that defines a data model for procedures in Blockly."],["It provides methods for managing procedure parameters, such as adding, removing, and accessing them."],["The interface also includes methods for controlling the procedure's enabled status, name, and return types."],["`IProcedureModel` enables saving and loading the procedure's state through serialization."],["This model is crucial for representing and manipulating procedures within the Blockly environment."]]],["The `IProcedureModel` interface manages procedure data. Key actions include: retrieving the procedure's ID, name, enabled status, parameters, and return types. Parameters can be managed by inserting, deleting, and retrieving them. The name, enabled status, and return types can be set. It supports getting all parameters as an array. Additionally, it allows saving the procedure's state and has the capacity of disabling or enabling it.\n"]]