当前位置:网站首页>Uniapp 应用未读角标插件 Ba-Shortcut-Badge
Uniapp 应用未读角标插件 Ba-Shortcut-Badge
2022-08-09 17:22:00 【三杯五岳】
应用未读角标插件 Ba-Shortcut-Badge
简介
Ba-Shortcut-Badge
- 支持自动叠加、手动设置、清空
- 支持机型有Huawei、oppo、xiaomi、Samsung、Sony、LG、HTC、ZUK、ASUS、ADW、APEX、NOVA、EverythingMe、ZTE、KISS、LaunchTime、Yandex Launcher等等
使用方法
在 script
中引入组件
const shortCutBadge = uni.requireNativePlugin('Ba-Shortcut-Badge')
在 script
中调用
methods: {
setCount() {
//手动设置未读角标数
shortCutBadge.applyCount({
'badgeCount': 10
});
},
addCount() {
//自动叠加
shortCutBadge.applyCount();
},
clearCount() {
//清空
shortCutBadge.clearCount();
},
}
边栏推荐
猜你喜欢
ARM Assembly Basics
动手学深度学习_全卷积网络 FCN
总结篇4:redis 核心数据存储结构及核心业务模型实现应用场景
An in-depth understanding of the implementation principle of Hybrid
loadrunner脚本--参数化
2022秋招面试宝典,啃完面试稳了
Cortex-A7 MPCore 架构
Logic unauthorized and horizontal and vertical unauthorized payment tampering, verification code bypass, interface
50道Redis面试题,来看看你会多少?
神秘的程序员(20-30)
随机推荐
jmeter - record script
方舟:生存进化开服务器端口映射教程
解决启动项目初始化报错required a bean of type ‘int‘ that could not be found.的问题
kakka rebalance解决方案
ARM 汇编基础
megacli磁盘阵列
体验远超Hue,这才是技术人员最喜欢的SQL工具
win10 uwp 获取按钮鼠标左键按下
方舟单机/管理员特殊物品指令代码大全
自学软件测试,学到什么程度可以出去找工作啊?
win10 uwp 获得Slider拖动结束的值
怎样选择一个好的SaaS知识库工具?
How to choose a good SaaS knowledge base tool?
The strongest distributed lock tool: Redisson
本机号码一键登录原理
苦日子快走开
Jenkins deploys services to remote servers using pipelines
Prometheus完整安装
win10 uwp 简单MasterDetail
What platform is EPIC?