A class that contains the info of a hinge relevant to a Posture.

Summary

Public constructors

HingeInfo(
    bounds: Rect,
    isFlat: Boolean,
    isVertical: Boolean,
    isSeparating: Boolean,
    isOccluding: Boolean
)
Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

Rect

the bounds of the hinge in the relevant viewport.

Cmn
Boolean

true if the hinge is fully open and the relevant window space presented to the user is flat.

Cmn
Boolean

true if the hinge conceals part of the display.

Cmn
Boolean

true if the hinge creates two logical display areas.

Cmn
Boolean

true if the hinge is a vertical one, i.e., it separates the viewport into left and right; false if the hinge is horizontal, i.e., it separates the viewport into top and bottom.

Cmn

Public constructors

HingeInfo

HingeInfo(
    bounds: Rect,
    isFlat: Boolean,
    isVertical: Boolean,
    isSeparating: Boolean,
    isOccluding: Boolean
)
Parameters
bounds: Rect

the bounds of the hinge in the relevant viewport.

isFlat: Boolean

true if the hinge is fully open and the relevant window space presented to the user is flat.

isVertical: Boolean

true if the hinge is a vertical one, i.e., it separates the viewport into left and right; false if the hinge is horizontal, i.e., it separates the viewport into top and bottom.

isSeparating: Boolean

true if the hinge creates two logical display areas.

isOccluding: Boolean

true if the hinge conceals part of the display.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

bounds

val boundsRect

the bounds of the hinge in the relevant viewport.

isFlat

val isFlatBoolean

true if the hinge is fully open and the relevant window space presented to the user is flat.

isOccluding

val isOccludingBoolean

true if the hinge conceals part of the display.

isSeparating

val isSeparatingBoolean

true if the hinge creates two logical display areas.

isVertical

val isVerticalBoolean

true if the hinge is a vertical one, i.e., it separates the viewport into left and right; false if the hinge is horizontal, i.e., it separates the viewport into top and bottom.