Post not yet marked as solved
Post marked as unsolved with 0 replies, 369 views
Hi,
I wonder if there is a way to know if
smart ipad pro keyboard is attached.
So far I was using private api call to get that information -
GSEventIsHardwareKeyboardAttached(), and it was working
fine till I did update ipad pro to version 14.3.
Now, once I do attach smart ipad pro keyboard it will
report that keyboard is present - it is ok. But after I will detach keyboard GSEventIsHardwareKeyboardAttached()
will report that it is still attached and it will be so until I will reboot the ipadOS. So this is very not nice.
I did try also to use External Accessory, but it tells me that
nothing is connected:
[[EAAccessoryManager sharedAccessoryManager] connectedAccessories];
will return zero.
(my UISupportedExternalAccessoryProtocols is empty for
now since I do not know the key for apple smart keyboard).
Any ideas/hints?