虎牙开放平台文档

hyExt.storage.getKeys

  • 获取所有存储的键
  • 引入版本 1.1.0
  • 适用终端
    • 虎牙直播助手-iOS:3.14.0
    • 虎牙直播助手-安卓:3.14.0
    • 虎牙直播PC客户端-主播侧:4.9.0.3

接口签名

declare namespace hyExt { module storage { /** * 获取所有存储的键 */ function getKeys(): Promise<StorageKeys> } /** * 存储键的集合 */ type StorageKeys = string[] }

示例代码

hyExt.storage .getKeys() .then((res) => { console.log("调用hyExt.storage.getKeys成功", res) }) .catch((err) => { console.log("调用hyExt.storage.getKeys失败", err) })

相关链接