feat(springboard): get device orientation (#65)

This commit is contained in:
neo
2026-02-13 09:54:00 -05:00
committed by GitHub
parent c5aa731ee5
commit cb375f88a1
3 changed files with 107 additions and 0 deletions

View File

@@ -45,6 +45,10 @@ pub fn register() -> JkCommand {
.with_argument(JkArgument::new().required(true)),
),
)
.with_subcommand(
"get_interface_orientation",
JkCommand::new().help("Gets the device's current screen orientation"),
)
.subcommand_required(true)
}
@@ -102,6 +106,13 @@ pub async fn main(arguments: &CollectedArguments, provider: Box<dyn IdeviceProvi
.await
.expect("Failed to save wallpaper");
}
"get_interface_orientation" => {
let orientation = sbc
.get_interface_orientation()
.await
.expect("Failed to get interface orientation");
println!("{:?}", orientation);
}
_ => unreachable!(),
}
}