函数:clearAllKeyChains 清空钥匙串(仅支持 iOS)

函数名称:清空应用钥匙串信息

函数功能:删除手机安装应用钥匙串信息

支持版本:仅支持 iOS 系统

函数方法1

clearAllKeyChains(info)

参数 类型 必填 说明
info number 否 默认使用新版清理钥匙串功能,默认为 1,
如果类型写 1,则调用 TSLib v1.2.0 版本清理钥匙串功能,
如果类型写 0,则调用 TSLib v1.2.0 之前版本清理钥匙串功能
默认清空所有应用钥匙串,如果想清空指定应用钥匙串请使用函数方法2

函数方法2

clearAllKeyChains(tb)

参数 类型 必填 说明
tb table 是 仅 TSLib v1.2.8 及其以上版本支持

tb 参数介绍

参数 类型 必填 说明
tstab number 是 只能写为 1
bid table 是 应用包名,多个包名用 , 隔开

函数用例

require "TSLib"--此函数库已内置,无需单独下载及打包
local tb = {tstab=1,bid={"com.abc.mm","com.bcd.mm"}}
clearAllKeyChains(tb)
Copyright 北京帮你玩科技有限公司 2026 all right reserved,powered by Gitbook该文章修订时间: 2026-09-18 17:36:02

results matching ""

    No results matching ""