【文件属性】:
文件名称:cordova-pulse:Cordova插件,可通过设备摄像头测量用户的心跳
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-06 17:04:22
Objective-C
Cordova心率插件
插件可使用设备的摄像头和手电筒实时测量心率。
目前仅适用于iOS
使用
安装插件
$ cordova plugin add https://github.com/szokeptr/cordova-pulse.git
在您的应用程序中,使用方式如下:
var success = function ( bpm ) {
console ( 'Your pulse is:' , bpm ) ;
}
var failure = function ( ) {
alert ( "Error calling Pulse plugin" ) ;
}
pulse . measure ( success , failure ) ;
要停止测量:
pulse . stop ( ) ;
【文件预览】:
cordova-pulse-master
----.gitignore(72B)
----README.md(531B)
----src()
--------ios()
--------.DS_Store(6KB)
----www()
--------pulse.js(316B)
----plugin.xml(1KB)