@heybox/hb-sdk API Reference - v0.9.5
    正在准备搜索索引...
    • 胶囊开关;状态由 Runtime 持有,宿主只回送切换请求并等待新文档确认。

      参数

      • id: string

        关联标签、原因与更新时身份使用的稳定键。

      • label: string

        用户可见且可访问的开关名称。

      • checked: boolean

        Runtime 已确认的当前状态。

      • 可选options: ToggleOptions

        可用性、结算状态、动作与旧宿主降级内容。

      返回 ViewNode