【发布时间】:2014-05-08 14:49:10
【问题描述】:
有一些奇怪的方法,例如检查配对设备 and catching exceptions 以查看它是否打开。
if ((uint)ex.HResult == 0x8007048F)
{
var result = MessageBox.Show("Bluetooth is turned off.\nTo see the current Bluetooth settings tap 'ok'", "Bluetooth Off", MessageBoxButton.OKCancel);
}
但是我看到有一个新的BluetoothConnectionStatus api 但不知道如何使用它。
如何在 Windows Phone 运行时应用程序中检查蓝牙状态?
【问题讨论】:
标签: c# windows-phone-8 windows-runtime windows-phone windows-phone-8.1