Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
flutterui:haptic_feedback [2023/03/08 09:48]
admin created
flutterui:haptic_feedback [2023/03/08 09:51] (current)
admin
Line 1: Line 1:
 ~~NOTRANS~~ ~~NOTRANS~~
 ~~Title: Haptic feedback~~ ~~Title: Haptic feedback~~
-A mobile device supports haptic feedback. If you want to use this, simply set a style for your button. We only have haptic feedback for buttons right now.+A mobile device supports haptic feedback. If you want to use this feature, simply set a style for your button. We only have haptic feedback for buttons right now.
  
 <code java> <code java>
 +Style.addStyleNames(button,​ "​f_haptic"​);​
 </​code>​ </​code>​
  
 Possible styles are: Possible styles are:
  
-''​f_haptic_light''​''​f_haptic_medium''​''​f_haptic_heavy''​''​f_haptic_click''​, ''​f_haptic''​ +''​f_haptic''​ - Provides vibration haptic feedback to the user for a short duration.\\  
 +''​f_haptic_light'' ​- Provides a haptic feedback corresponding a collision impact with a light mass.\\  
 +''​f_haptic_medium'' ​- Provides a haptic feedback corresponding a collision impact with a medium mass.\\  
 +''​f_haptic_heavy'' ​- Provides a haptic feedback corresponding a collision impact with a heavy mass.\\  
 +''​f_haptic_click'' ​- Provides a haptic feedback indication selection changing through discrete values.\\ ​
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information