πŸ“Š Poll time: say there is an API to enumerate how many segments the viewport has. E.g. for a foldable phone the number would be 2 when the device is unfolded.

What would you expect this API to return when the foldable is closed, or when it’s a non-foldable device?

null
9.3%
1
86%
???
4.7%
Poll ended at .

@bramus When the foldable is closed... It has the size of 1 segment πŸ™ƒ. Even though it should be like when the screen is off, unless the OS switches to the back screen (if present), so it's 1 anyway.

Question: should the API react dynamically to the number of active segments? E.g. what about those screens with 3 segments, but you can fold one to the back so you have 2 active?

@MaxArt2501 @bramus And in regards to your question about the number of segments > 2. The API is dynamic, it will return the current number of active segments.