只读host只读appVersion: string | null当前小黑盒 App 版本;Host 未提供时为 null。
只读mini只读id: string | null平台确认的 canonical 小程序 ID;Host 未提供时为 null。
只读version: string | null当前加载的小程序版本;Host 未提供时为 null。
只读operating只读name: MiniProgramOperatingSystemNameHost 提供的标准操作系统枚举。
只读version: string | nullHost 提供的操作系统版本;Host 未提供时为 null。
只读runtime只读mode: MiniProgramRuntimeMode当前小程序实例的运行模式。
只读sdk只读version: string当前页面实际运行的 @heybox/hb-sdk 版本。
当前小程序实例的只读环境快照。
备注
返回对象及其嵌套对象均已冻结。除
sdk.version外,版本字段都是 Host 提供的 不透明字符串,不保证符合 SemVer,也不适合做大小比较。旧版 Host 缺失字段时 使用固定结构,并将字符串字段设为null、枚举字段设为unknown。