Skip to main content

is_available

Function is_available 

Source
pub fn is_available(kind: SensorKind) -> bool
Expand description

Whether the device has the given sensor (and the platform an API for it). false also covers simulators/emulators without sensor passthrough and desktops without motion hardware.

Day API ↩ Guides· daybrite.dev