How the global kill switch affects API methods
mainWhen setEnabled(false) is active, the following behaviors occur:
| Method | Behavior when disabled |
|---|---|
trigger() | Returns immediately without firing |
triggerPattern() | Returns immediately |
stop() | Still runs (safe to call) |
isSupported() | Returns device capability (unaffected by kill switch) |
playAHAP() | Returns Promise.resolve() immediately |
playHaptic() | Returns Promise.resolve() immediately |
If you are using the useHaptics hook, all calls through the returned object (e.g., haptics.trigger()) automatically respect this global state.