Function silkenweb::window::on_deviceorientation

source ·
pub fn on_deviceorientation(
    f: impl FnMut(DeviceOrientationEvent) + 'static
) -> EventCallback
Expand description

Add a deviceorientation event handler at the window level.

This only has an effect on WASM targets.