useHingeChange
Call the hook inside a component rendered in either pane. It observes the nearest ArrangementView, keeping events associated with that view's scene. It is not a process-wide sensor subscription.
The callback is optional; the hook also returns the current HingeState and subscribes the component to updates. It invokes the callback with the initial unavailable state and then changed values.
HingeState
Before the first native update, without hardware, or when observation is disabled, the state is { available: false, angle: null, status: 'unknown' }.
On Android, angle comes from the hinge angle sensor (Android 11+) and is null on a foldable without one.