在 Xamarin.Form 跨平台中,有没有办法在弹出对话框或菜单列表中显示可用 BLE 设备列表(扫描后),然后从弹出对话框中连接所需的 BLE 设备框并在为显示数据而创建的 UI 上显示数据??????
In Xamarin.Form cross platform , is there any way to show the list of available BLE devices (after scan) in a pop-up dialog box or in menu list and then connect the desired BLE device from the pop-up dialog box and show the data on the UI created for displaying data ??????
推荐答案您将需要 DependencyService 以检索可用 BLE 设备的列表并显示到 ListView 像往常一样.
You will need DependencyService to retrieve the list of available BLE devices and just display to the ListView as usual.
此外,Xamarin 制作的以下组件可以帮助您轻松找到适用于 iOS 和 Android 的 BLE 设备.
Besides, below component made by Xamarin may help you to find BLE devices easily for both iOS and Android.
components.xamarin/view/Monkey.Robotics
更多推荐
Xamarin 跨平台上的 BLE
发布评论