Hello, is there a way to get the chin height in a ...
# compose-wear
l
Hello, is there a way to get the chin height in a composable?
y
I'm not sure of the answer, but curious which model.
l
Several Motorola and Fossil models have a chin.
j
Chin values are obtained from WindowInsets - so I assume (but haven't tried) that you can use https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/WindowInsets
y
a
I’d be very curious what type of inset the chin height gets reported as. Definitely report a bug if it’s not being picked up with the new Compose APIs, they should support this as well!
🎉 1
y
According to SO insets.getSystemWindowInsetBottom()
You can import old hardware profiles into android Studio to resurrect chin, but emulator 30 didn't seem to support when I tried.
I'll follow up
a
systemWindowInsets
is deprecated, the equivalent should be
systemBars
. I’d expect it to be part of
navigationBars
since it is on the bottom, although that doesn’t really make a ton of logical sense?
l
I'm glad the chin got deprecated. When I saw the bezels + the chin several years back, just to fit a luminosity sensor, I thought "Do they s**k so much at hardware design that they don't fit it into the bezel and pass it on every single developer instead??" If they had sold tens of millions of these, it'd have kinda been worthwhile, but it was more yet another complication for app developers, providing little value besides cutting/mangling round watch faces and UIs, and supporting automatic brightness of course.
I'll try with the inset APIs you mentioned, thanks!