当前位置: 首页 > 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://www.xdnf.cn/news/1485109.html

相关文章:

  • 安卓学习 之 ProgressBar(进度条)控件
  • Android 热点开发的相关api总结
  • Python-LLMChat
  • 《数据结构全解析:栈(数组实现)》
  • Dockerfile解析器指令(Parser Directive)指定语法版本,如:# syntax=docker/dockerfile:1
  • 【Java实战㉛】解锁Spring框架实战:深入IOC容器的奇妙之旅
  • 从0开始制做一个Agent
  • CMake构建和调试简单程序(windows)
  • YOLO11实战 第009期-基于yolo11的咖啡叶病害目标检测实战文档(yolo格式数据免费获取)
  • C++进阶——多态
  • 简述ajax、node.js、webpack、git
  • ncnn-Android-mediapipe_hand 踩坑部署实录
  • 【数据结构】经典 Leetcode 题
  • Java安全体系深度研究:技术演进与攻防实践
  • 嵌入式Secure Boot安全启动详解
  • JSP到Tomcat特详细教程
  • C#中的托管资源与非托管资源介绍
  • Docker启动失败 Failed to start Docker Application Container Engine.
  • ZYNQ SDK软件在线调试
  • Flutter SDK 安装与国内镜像配置全流程(Windows / macOS / Linux)
  • HTML 中的 CSS 使用说明
  • 华为HCIP-Datacom-Core Technology H12-831 书籍目录
  • 一款没有任何限制的免费远程手机控制手机的软件简介
  • linux Kbuild详解关于fixdep、Q、quiet、escsq
  • k8s核心技术-Helm
  • 去中心化投票系统开发教程 第五章:测试与部署
  • AI工具全解析:智能编码、数据标注与模型训练平台
  • 文件上传之读取文件内容保存到ES
  • 【iOS】block复习
  • 【Python脚本系列】PyCryptodome库解决网盘内.m3u8视频文件无法播放的问题(三)