dual_screen_hinge library

Foldable display telemetry and controls for Android and iOS.

Classes

DisplayMode
A snapshot of an optional platform-controlled display mode.
DualScreenCapabilities
Runtime feature support for the current device and OS state.
DualScreenHinge
Entry point for foldable telemetry, snapshots, and display sessions.
DualScreenHingePlatform
Injectable native platform contract used by the DualScreenHinge facade.
DualScreenState
One coherent foldable-display snapshot emitted by the native plugin.
FoldFeature
Geometry and native metadata for one physical display feature.
ReservedRegion
Geometry that custom content should avoid on the current display.

Enums

ActiveScreen
The display role currently hosting the primary Flutter view.
DisplayModeState
The lifecycle and availability of a controllable display mode.
FoldFeatureOcclusion
How much content a feature physically hides.
FoldFeatureOrientation
The axis followed by a fold feature in logical screen coordinates.
FoldFeatureType
Whether a display feature is a flexible fold or an occluding hinge.
HingePosture
A normalized physical posture reported by the platform.
ReservedRegionKind
The role a system-reserved area plays in the current layout.

Exceptions / Errors

DualScreenException
A native channel failure with a stable machine-readable code.