TableTopMode

constructor(hingePosition: Rect, hingeSeparationRatio: Float, isSeparating: Boolean, occlusionType: FoldingFeature.OcclusionType)

All available information about a foldable screen in tabletop mode.

Parameters

hingePosition

Indicates the DP position through which the hinge cuts through the physical screen, whether it is horizontal a vertical.

hingeSeparationRatio

Number between 0 and 1 indicating where the hinge lives. Often is 0.5 for most foldable devices with apps in full-screen mode, since most hinges run down the center of the screen. Apps in floating window mode will see this value change as the app is dragged around, moving its position relative to the device's hinge. Does not indicate the up/down or left/right direction of the hinge. See hingePosition for information on that.

isSeparating

Indicates whether the hinge is visually diving the screen (like Microsoft Surface Duo) or seamless (like Samsung Galaxy Z Fold + Z Flip).

occlusionType

Indicates if the screen is or is not obscured in any way by the hinge.