iOS Swift检测蓝牙键盘是否已连接

Flo*_*ler 5 keyboard bluetooth ios swift

如何检测蓝牙键盘是否已连接到iPad?它实际上是条形码扫描仪,但充当键盘。如果扫描仪未连接,我想提醒用户。