Unified Web ↔ Native Communication (Android & iOS)
--
'android' | 'ios' |
'desktop'
Native automatically pushes --bridge-inset-* CSS properties whenever bars
change.
Use var(--bridge-inset-top) etc. in your CSS. The insets
action
is for on-demand JavaScript queries. All values are in dp/pt.
safeArea.top = status bar + top navigation (when visible).
safeArea.bottom = system navigation + bottom navigation (when visible).
Native sends focused /
defocused events automatically. Current state:
Native sends push events automatically. Latest: