init
This commit is contained in:
9
xhs-mini-demos/component-case/bluetooth/bluetooth.js
Normal file
9
xhs-mini-demos/component-case/bluetooth/bluetooth.js
Normal file
@@ -0,0 +1,9 @@
|
||||
Page({
|
||||
openBluetoothAdapter() {
|
||||
xhs.openBluetoothAdapter?.({
|
||||
complete: res => {
|
||||
console.log('【openBluetoothAdapter】:', res);
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
5
xhs-mini-demos/component-case/bluetooth/bluetooth.json
Normal file
5
xhs-mini-demos/component-case/bluetooth/bluetooth.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarTitleText": "音频"
|
||||
|
||||
}
|
||||
3
xhs-mini-demos/component-case/bluetooth/bluetooth.xhsml
Normal file
3
xhs-mini-demos/component-case/bluetooth/bluetooth.xhsml
Normal file
@@ -0,0 +1,3 @@
|
||||
<view>
|
||||
<button type="primary" bindtap="openBluetoothAdapter">openBluetoothAdapter</button>
|
||||
</view>
|
||||
Reference in New Issue
Block a user