iOS Swift Detect If Bluetooth Keyboard Is Connected - ios

How can I detect if a Bluetooth keyboard is connected to the iPad? It's actually a barcode scanner but acts as a keyboard. I want to alert the user if the scanner is not connected.

Related

Customize Bluetooth Pairing Request message on iOS

Is it possible to customize the Bluetooth Pairing Request dialog on iOS? This is what we get currently for our Bluetooth device. Basically, there is no numerically entry on our Bluetooth device. You press a button on our device to confirm pairing. However, I'm not clear if you need to make a change on the firmware or if this is something that can be customized from iOS to change the text.

Force software keyboard on iOS 10

Is there any way anyone knows of to force the onscreen software keyboard in iOS when a Bluetooth HID device (like a barcode scanner) is active?
There are a few ancient questions on SO, but most work by manually adjusting the frame of the keyboard view, and that method no longer appears to work as of iOS 8.
Strangely there doesn't seem to be any information on how to do this post iOS 8. Is it just impossible?
See:
Show iPhone soft keyboard even though a hardware keyboard is connected
Force on screen keyboard to show when bluetooth keyboard connected
Default keyboard is not coming when Barcode Scanner Device is Connected by Bluetooth in IOS
Bluetooth HID Device & iOS textFields
Show virtual Keyboard when bluetooth keyboard connected?

Detect Bluetooth device connect/disconnect in background using core bluetooth in iOS programmatically

I need to programmatically detect the connect and disconnect event of any bluetooth device with iPhone, while app is in background.

Bluetooth connection in iOS

Is it possible to programatically pair an iOS device with a Bluetooth device?
I would have the device's MAC address and also the Bluetooth Pin.
I know it's possible to do on an Android device without any pairing screen/dialogue appears, but can it be done in iOS?
Thanks for any pointers.

How to detect if a bluetooth device is connected

Is there anyway to detect if a HID blue tooth device is connected to the device using Delphi XE5, for an iOS application.
Ideally, I would like to show an indicator light if a scanner is connected or not.
Yes, the scanner is iOS supported and does connect and work as keyboard.

Resources