1. 首页
  2. 数据库
  3. 其它
  4. nativescript headset detection:检测何时(断开)连接了耳机(插Kong或蓝牙) 源码

nativescript headset detection:检测何时(断开)连接了耳机(插Kong或蓝牙) 源码

上传者: 2021-02-10 03:14:09上传 ZIP文件 47.98MB 热度 12次
NativeScript耳机检测插件 安装 tns plugin add nativescript-headset-detection API isConnected 要在任何给定时刻检查耳机,请使用以下方法: JavaScript var headsetDetection = require ( "nativescript-headset-detection" ) ; headsetDetection . isConnected ( ) . then ( function ( connected ) { console . log ( "Connected? " + connec
下载地址
用户评论