feat: support locking screen orientation, closes #860 (#1034)

This commit is contained in:
Huang Xin 2025-05-05 16:55:50 +08:00 committed by GitHub
parent 6299ea09b7
commit 5e04f6ae03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
37 changed files with 375 additions and 21 deletions

View file

@ -73,3 +73,11 @@ pub(crate) async fn intercept_keys<R: Runtime>(
) -> Result<()> {
app.native_bridge().intercept_keys(payload)
}
#[command]
pub(crate) async fn lock_screen_orientation<R: Runtime>(
app: AppHandle<R>,
payload: LockScreenOrientationRequest,
) -> Result<()> {
app.native_bridge().lock_screen_orientation(payload)
}