函数: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"--使用本函数库必须在脚本开头引用并将文件放到设备 lua 目录下
local tb = {tstab=1,bid={"com.abc.mm","com.bcd.mm"}}
clearAllKeyChains(tb)
Copyright 北京帮你玩科技有限公司 2024 all right reserved,powered by Gitbook该文章修订时间: 2025-09-19 15:04:57

results matching ""

    No results matching ""