I'm finally trying to properly update my METAR/TAF widget with support for glance views. Because the widget has multiple screens of information, prior to glance views I followed the Garmin de facto standard of displaying further information when the user presses the start button. Now with glance views, the user presses the start button to move from the glance to the full screen so for devices with glance view enabled I need to handle the start button input differently; the initial view for non-glance devices needs to function as before but for glance devices the initial view has to jump right in to the "started" view. I am using the "has" functionality to determine if the device supports glance views and if it's enabled:
if (
System.DeviceSettings has :isGlanceModeEnabled) {
// this is a device that supports glance views
}
This works just fine however whenever I access that attribute within DeviceSettings it is always set to false.
if (System.getDeviceSettings().isGlanceModeEnabled
) {
// this code is NEVER run as this attribute is always "false"
}
I'm using SDK 3.1.6 on MacOS and can see no way to set this attribute. I'm pretty sure that the way I'm doing things will work for glance view devices but without an actual device and without the ability to set this attribute it's a bit hard to be sure.