Quantcast
Channel: User Liyun Zhang - MSFT - Stack Overflow
Viewing all articles
Browse latest Browse all 444

Answer by Liyun Zhang - MSFT for Hardware Keyboard MAUI / Blazor MAUI Hybrid

$
0
0

There is no api for maui can detect if the physical keyboard is connected. But you can call the platform native code to do that.

            bool isphysicakeyboardconnected;#if ANDROID            isphysicakeyboardconnected = Platform.CurrentActivity.Resources.Configuration.Keyboard != Android.Content.Res.KeyboardType.Nokeys;#elif IOS            isphysicakeyboardconnected = GameController.GCKeyboard.CoalescedKeyboard !=null;#endif

Viewing all articles
Browse latest Browse all 444

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>