UiMediaScope.WindowFold


Represents a single physical fold or hinge intersecting the window.

A WindowFold describes a geometric screen feature that actively crosses the bounds of the current window. It maps directly to the state of underlying hardware hinge sensors.

Summary

Public constructors

WindowFold(
    state: UiMediaScope.FoldState,
    orientation: UiMediaScope.FoldOrientation
)
Cmn

Public functions

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

Public properties

UiMediaScope.FoldOrientation

The axis of the fold relative to the window bounds (e.g. FoldOrientation.Horizontal or FoldOrientation.Vertical).

Cmn
UiMediaScope.FoldState

The geometric layout state of the fold (e.g. FoldState.Flat or FoldState.HalfOpened).

Cmn

Public constructors

WindowFold

WindowFold(
    state: UiMediaScope.FoldState,
    orientation: UiMediaScope.FoldOrientation
)
Parameters
state: UiMediaScope.FoldState

The geometric layout state of the fold (e.g. FoldState.Flat or FoldState.HalfOpened).

orientation: UiMediaScope.FoldOrientation

The axis of the fold relative to the window bounds (e.g. FoldOrientation.Horizontal or FoldOrientation.Vertical).

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

orientation

val orientation: UiMediaScope.FoldOrientation

The axis of the fold relative to the window bounds (e.g. FoldOrientation.Horizontal or FoldOrientation.Vertical).

state

val state: UiMediaScope.FoldState

The geometric layout state of the fold (e.g. FoldState.Flat or FoldState.HalfOpened).