| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
A small process-wide store for values only the screen host can observe: safe-area insets, viewport size, and keyboard height. The host publishes them as the platform reports changes, and view handlers read them on demand instead of receiving them through every measurement call. Everything here is in layout units, points on iOS and density-independent pixels on Android, so the values add directly to other layout-unit values without conversion. Most app code reaches this indirectly, through [use_safe_area_insets][pythonnative.use_safe_area_insets] and [use_window_dimensions][pythonnative.use_window_dimensions].
::: pythonnative.platform_metrics options: show_root_heading: false show_root_toc_entry: false members_order: source filters: ["!^_"]
| Back | FazBrowse Home | New Git URL |