Expand description
Platform facts the event loop cannot see, pushed by the thin native wrapper
(Swift / Kotlin, through uzor-window-mobile) from any thread: the safe area
where winit does not report it (Android WindowInsets) and the soft keyboard
height (iOS keyboardWillChangeFrame, Android WindowInsets.ime), both in
logical px. The native host picks them up on its next loop turn and echoes
WindowInput::Insets to every window.
Functions§
- current
- The last values the wrapper pushed: (safe area if it set one, keyboard height).
- set_
keyboard - The soft keyboard’s height over the bottom of the window (0 when hidden).
- set_
safe_ area - The platform’s safe area (overrides what the host derives itself; on iOS winit already reports it, on Android only the wrapper knows it).