How do I get a BLEManager instance? #1391
Unanswered
davepruitt
asked this question in
Q&A
Replies: 1 comment 7 replies
-
It depends on how you setup your dependency injection. At the viewmodel level, at the page level... it is hard to say how far people go here. You can use: var manager = Shiny.Hosting.Host.GetService<IBleManager>(); Sample with DI is here: https://github.com/shinyorg/shiny/blob/dev/samples/Sample.Maui/BleClient/ScanViewModel.cs |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The very first thing in the documentation (https://shinylib.net/client/ble/manager/) says that you need to resolve/inject/etc an instance of IBLEManager to do anything with BLE. But there is no documentation on how to do this. How?!?! I've dived deep into the sample code, but I have found nothing.
Beta Was this translation helpful? Give feedback.
All reactions