fix: query status bar height on Android, closes #943 (#947)

This commit is contained in:
Huang Xin 2025-04-23 20:01:37 +08:00 committed by GitHub
parent ad551a04a1
commit 172ab382bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 148 additions and 20 deletions

View file

@ -51,3 +51,10 @@ pub(crate) async fn set_system_ui_visibility<R: Runtime>(
) -> Result<SetSystemUIVisibilityResponse> {
app.native_bridge().set_system_ui_visibility(payload)
}
#[command]
pub(crate) async fn get_status_bar_height<R: Runtime>(
app: AppHandle<R>,
) -> Result<GetStatusBarHeightResponse> {
app.native_bridge().get_status_bar_height()
}