
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
touchui-api
Advanced tools
以小程序API方式调用h5+API
暂不处理
暂不处理
api.openBrowser(OBJECT)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
url | String | 是 | 要浏览的页面地址 |
backgroundColor | String | 否 | 标题栏背景颜色 |
color | String | 否 | 标题栏文字颜色 |
success | Function | 否 | 接口调用成功的回调 |
fail | Function | 否 | 接口调用失败的回调函数 |
complete | Function | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
api.scanCode(OBJECT)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
onlyFromCamera | Boolean | 否 | 是否只能从相机扫码,不允许从相册选择图片 |
backgroundColor | String | 否 | 标题栏背景颜色 |
color | String | 否 | 标题栏文字颜色 |
success | Function | 否 | 接口调用成功的回调 |
fail | Function | 否 | 接口调用失败的回调函数 |
complete | Function | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
api.canUseTouchID(OBJECT)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
success | Function | 否 | 接口调用成功的回调 |
fail | Function | 否 | 接口调用失败的回调函数 |
complete | Function | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
api.useTouchID(OBJECT)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
success | Function | 否 | 接口调用成功的回调 |
fail | Function | 否 | 接口调用失败的回调函数 |
complete | Function | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
api.share(OBJECT)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
target | String | 是 | 要分享到的应用(weixin_timeline、weixin_message、weibo、qq) |
type | String | 否 | 分享类型(link、text、image 默认为link) |
title | String | 否 | 分享标题(分享类型需为link) |
content | String | 否 | 分享内容(分享类型为text时必选) |
icon | String | 否 | 分享缩略图(分享类型需为link、图片大小需要小于30Kb) |
href | String | 否 | 分享链接(分享类型需为link) |
pictures | Array | 否 | 分享图片(分享类型需为image、图片地址不支持网络路径、部分平台仅支持分享一张图片) |
success | Function | 否 | 接口调用成功的回调 |
fail | Function | 否 | 接口调用失败的回调函数 |
complete | Function | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
api.pickPhoneNumber(OBJECT)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
success | Function | 否 | 接口调用成功的回调,返回电话号码 phoneNumber |
fail | Function | 否 | 接口调用失败的回调函数 |
complete | Function | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
api.onStatusbarTap(CALLBACK)
无
api.onBackButtonClick(CALLBACK)
无
api.offBackButtonClick(OBJECT)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
listener | Function | 是 | 要移除的事件监听回调函数 |
success | Function | 否 | 接口调用成功的回调,返回电话号码 phoneNumber |
fail | Function | 否 | 接口调用失败的回调函数 |
complete | Function | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
api.setPagePopGesture(OBJECT)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
openPagePopGesture | Boolean | 是 | 是否开启侧滑关闭手势 |
success | Function | 否 | 接口调用成功的回调,返回电话号码 phoneNumber |
fail | Function | 否 | 接口调用失败的回调函数 |
complete | Function | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
FAQs
touchui api
The npm package touchui-api receives a total of 1 weekly downloads. As such, touchui-api popularity was classified as not popular.
We found that touchui-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.