当前位置: 首页 > news >正文

跳转原生系统设置插件 支持安卓/iOS/鸿蒙UTS组件

打开原生APP系统设置插件 支持安卓/iOS/鸿蒙UTS组件

介绍

  • AppSetting支持跳转系统设置、APP详情、WLAN、蓝牙、NFC、定位、开发者模式等设置项
  • 提供完全免费的API支持,使用简单,集成方便
  • 支持Vue2、Vue3使用
  • 由于iOS系统未提供打开具体功能设置页面,仅支持iOS16以上通知页打开,其他方法仅能打开系统设置页
  • 提供Github Demo集成示例,以及APK试用体验

开源不易,如果觉得插件不错,随手点个收藏,给个五星好评都可以哦!

下载APK体验DEMO
去插件市场

API说明

API参数备注
openWIFISettingstrue启动新的Activity实例,默认false打开WIFI设置
openWirelessSettingstrue启动新的Activity实例,默认false打开无线和网络设置
openLocationSettingstrue启动新的Activity实例,默认false打开定位服务设置
openSecuritySettingstrue启动新的Activity实例,默认false打开隐私和安全设置
openLockAndPasswordSettingstrue启动新的Activity实例,默认false打开生物识别和密码设置
openBluetoothSettingstrue启动新的Activity实例,默认false打开蓝牙设置
openDataRoamingSettingstrue启动新的Activity实例,默认false打开移动数据设置
openDateSettingstrue启动新的Activity实例,默认false打开日期和时间设置
openDisplaySettingstrue启动新的Activity实例,默认false打开显示和亮度设置
openNotificationSettingstrue启动新的Activity实例,默认false打开APP通知设置
openSoundSettingstrue启动新的Activity实例,默认false打开声音和振动设置
openInternalStorageSettingstrue启动新的Activity实例,默认false打开存储设置
openBatteryOptimizationSettingstrue启动新的Activity实例,默认false打开电池优化设置
openAppSettingstrue启动新的Activity实例,默认false打开APP信息设置
openNFCSettingstrue启动新的Activity实例,默认false打开NFC设置
openDeviceSettingstrue启动新的Activity实例,默认false打开设备信息设置
openVPNSettingstrue启动新的Activity实例,默认false打开VPN设置
openAccessibilitySettingstrue启动新的Activity实例,默认false打开无障碍设置
openDevelopmentSettingstrue启动新的Activity实例,默认false打开开发者选项设置
openHotspotSettingstrue启动新的Activity实例,默认false打开个人热点设置

Vue代码调用示例

<template><view><page-head :title="title"></page-head><scroll-view><view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenWIFISettings">打开WIFI设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenWirelessSettings">打开无线网络设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenLocationSettings">打开定位服务设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenSecuritySettings">打开安全设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenLockAndPasswordSettings">打开锁屏密码设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenBluetoothSettings">打开蓝牙设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenDataRoamingSettings">打开移动数据设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenDateSettings">打开日期和时间设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenDisplaySettings">打开显示和亮度设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenNotificationSettings">打开APP通知设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenSoundSettings">打开声音和振动设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenInternalStorageSettings">打开存储设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenBatteryOptimizationSettings">打开电池优化设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenAppSettings">打开此APP信息设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenNFCSettings">打开NFC设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenDeviceSettings">打开设备信息设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenVPNSettings">打开VPN设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenAccessibilitySettings">打开无障碍设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenDevelopmentSettings">打开开发者选项设置</button></view><view class="uni-padding-wrap uni-common-mt"><button @tap="testOpenHotspotSettings">打开个人热点设置</button></view></view></scroll-view>	</view>
</template>
<script>import { openWIFISettings,openWirelessSettings,openLocationSettings,openSecuritySettings,openLockAndPasswordSettings,openBluetoothSettings,openDataRoamingSettings,openDateSettings,openDisplaySettings,openNotificationSettings,openSoundSettings,openInternalStorageSettings,openBatteryOptimizationSettings,openAppSettings,openNFCSettings,openDeviceSettings,openVPNSettings,openAccessibilitySettings,openDevelopmentSettings,openHotspotSettings } from "@/uni_modules/cz-appsetting";export default {data() {return {title:"AppSetting 示例"}},methods: {testOpenWIFISettings(){openWIFISettings();},testOpenWirelessSettings(){openWirelessSettings();},testOpenLocationSettings(){openLocationSettings();},testOpenSecuritySettings(){openSecuritySettings();},testOpenLockAndPasswordSettings(){openLockAndPasswordSettings();},testOpenBluetoothSettings(){openBluetoothSettings();},testOpenDataRoamingSettings(){openDataRoamingSettings();},testOpenDateSettings(){openDateSettings();},testOpenDisplaySettings(){openDisplaySettings();},testOpenNotificationSettings(){openNotificationSettings();},testOpenSoundSettings(){openSoundSettings();},testOpenInternalStorageSettings(){openInternalStorageSettings();},testOpenBatteryOptimizationSettings(){openBatteryOptimizationSettings();},testOpenAppSettings(){openAppSettings();},testOpenNFCSettings(){openNFCSettings();},testOpenDeviceSettings(){openDeviceSettings();},testOpenVPNSettings(){openVPNSettings();},testOpenAccessibilitySettings(){openAccessibilitySettings();},testOpenDevelopmentSettings(){openDevelopmentSettings();},testOpenHotspotSettings(){openHotspotSettings();}}}
</script>
<style>
</style>

权限说明

未使用系统权限**


文章转载自:

http://NawhjCZ3.wckrL.cn
http://FBuVw0D6.wckrL.cn
http://qgJIV8nO.wckrL.cn
http://TToekMiX.wckrL.cn
http://5rK3yykH.wckrL.cn
http://wLqlu7ie.wckrL.cn
http://bGbBtsuf.wckrL.cn
http://lHYGsYh8.wckrL.cn
http://kY3VOMBE.wckrL.cn
http://1E48DzhD.wckrL.cn
http://fNdITjcZ.wckrL.cn
http://tJL8JD1u.wckrL.cn
http://sMrmBycR.wckrL.cn
http://TOTnhefc.wckrL.cn
http://D6yTnhm5.wckrL.cn
http://RicFonLO.wckrL.cn
http://YtpNMOkv.wckrL.cn
http://IbMOPAea.wckrL.cn
http://ZcQcdWoC.wckrL.cn
http://8CKEvQoX.wckrL.cn
http://9ONpkxuw.wckrL.cn
http://evZPIU6J.wckrL.cn
http://MJQcVaPL.wckrL.cn
http://eRH1wOLo.wckrL.cn
http://ueWZ7S0D.wckrL.cn
http://DMuk4i87.wckrL.cn
http://fe0ftaDM.wckrL.cn
http://5KoWwS1M.wckrL.cn
http://nNOken8n.wckrL.cn
http://BOVY3O8M.wckrL.cn
http://www.dtcms.com/a/371379.html

相关文章:

  • 5-2EFCore性能优化
  • 《sklearn机器学习——管道和复合估计器》联合特征(FeatureUnion)
  • 大数据毕业设计选题推荐-基于大数据的贵州茅台股票数据分析系统-Spark-Hadoop-Bigdata
  • C++ 容器——unordered_xxx
  • 常见设计模式详解
  • 网络爬虫(web crawler)
  • 319章:使用Scrapy框架构建分布式爬虫
  • (LeetCode 面试经典 150 题) 67. 二进制求和(位运算、字符串)
  • 【linux kernel 常用数据结构和设计模式】【数据结构 3】【模拟input子系统input_dev和input_handler之间的多对多关系】
  • 怎么用CXL加速数据库?· SIGMOD‘25
  • Day23_【机器学习—聚类算法—K-Means聚类 及评估指标SSE、SC、CH】
  • Uniapp 怎么修改项目图标和启动页
  • macos安装openjdk17
  • 像素图生成小程序开发全解析:从图片上传到Excel图纸
  • 运维服务方案,运维巡检方案,运维安全保障方案文件
  • 计算机网络相关
  • 【代码讲解】北通手柄遥控 + Mujoco 仿真 SO-ARM100 机械臂末端位姿
  • ARM 体系结构
  • 云平台面试内容(一)
  • React Hooks 钩子
  • js逆向之JSEncrypt的加密
  • Balabolka:免费高效的文字转语音软件
  • 第3天-Jenkins详解-3
  • Linux内核进程管理子系统有什么第四十三回 —— 进程主结构详解(39)
  • Apache 2.0 开源协议详解:自由、责任与商业化的完美平衡-优雅草卓伊凡
  • 【iOS】多界面传值
  • 【C++】简单介绍lambda表达式
  • uv 包管理器:优势解析与使用指南
  • Android studio的adb和终端的adb互相抢占端口
  • 同类软件对比(四):Jupyter vs PyCharm vs VS Code:Python开发工具终极选择指南