selection_changed

Function selection_changed 

Source
pub fn selection_changed() -> Result<(), JsValue>
Expand description

Triggers a haptic selection change feedback.

§Errors

Returns Err(JsValue) if the JavaScript call fails or HapticFeedback is missing.

§Examples

use telegram_webapp_sdk::api::haptic::selection_changed;
selection_changed()?;