README
siro-jsbridge
Introduce
This project is based on the JS part of dsbridge, which is rewritten after engineering.I hope it's useful for you。
Project setup
npm install
Compiles and hot-reloads for development
npm start
Compiles and minifies for production
npm run build
How to use
In VUE main.js
import {SRJSBridge} from 'siro-jsbridge'
Vue.prototype.SRJSBridge = window.SRJSBridge;
then
SRJSBridge.invoke('getBluetoothDevice','getBluetoothDevice',(v)=>{
console.log(v);
});