Skip to main content

is_supported

Function is_supported 

Source
pub fn is_supported() -> bool
Expand description

Whether this platform has a haptic engine wired up. true on iOS/macOS/Android (even on a Simulator or a device that happens to lack the hardware — this reports API availability, not a live hardware probe), false on every other target, where play is a no-op.

Day API ↩ Guides· daybrite.dev