Skip to content

How to find out which segment ist the hinge. #5

@MalteRei

Description

@MalteRei

Hey,

in the explainer it says:

developers will be able to infer the number of hinges available as well as the hinge orientation

I have tried out the polyfill. Now I am wondering how the developer is able to infer which segments are safe to use.
From my understanding the polyfill tries to emulate a dual screen device when foldSize = 0. Nevertheless it still returns three segments. The second one has a width of 0.
When the foldSize is > 0 I think the polyfill is emulating a foldable device with a single screen where one might be interested to know where the fold is to not place critical content there even though there is screen space available, but in some postures of the device not well visible.
Is the proposal meant to only return two segments when there is a hinge just like in this picture?


image

Also, will the segments be in any order. Or should a devloper pick the segment they want to place content at based on the size of the segment? So for a foldable device I assume the hinge is the smallest segment which is why I place the least relevant content on the smallest segment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions