I am trying to create a widget which shows information about a hardware device.
There can be multiple of these devices and user will be able to add same widget for different devices.
I am looking for a way to understand which device information should be shown inside GlanceAppWidget.Content()
method. In Classical Android Widgets it was possible by checking appWidgetId passed to update()
method. At Glance appWidgetId is hidden intentionally but I could not find an alternative solution.
Any suggestions?