虎牙开放平台文档

hyExt.storage.removeItem

  • 移除存储信息
  • 引入版本 1.1.0
  • 适用终端
    • 虎牙直播助手-iOS:3.14.0
    • 虎牙直播助手-安卓:3.14.0
    • 虎牙直播PC客户端-主播侧:4.9.0.3

接口签名

declare namespace hyExt { module storage { /** * 移除存储信息 * @param key 存储的键 */ function removeItem(key: string): Promise<void> } }

示例代码

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

相关链接