Small doc clarification to HapticFeedback.vibrate (#10217)

Eliminate the implementation detail of which function is called to
trigger vibration on iOS, instead report the vibration constant.

Also note that not all iOS devices support haptic feedback (e.g., older
iPod touch devices).
This commit is contained in:
Chris Bracken
2017-05-19 14:50:11 -07:00
committed by GitHub
parent c9d21ecd24
commit 48237d54c1

View File

@@ -15,8 +15,8 @@ class HapticFeedback {
/// Provides haptic feedback to the user for a short duration.
///
/// On iOS, this uses the platform "sound" for vibration (via
/// `AudioServicesPlaySystemSound`).
/// On iOS devices that support haptic feedback, this uses the default system
/// vibration value (`kSystemSoundID_Vibrate`).
///
/// On Android, this uses the platform haptic feedback API to simulates a
/// short tap on a virtual keyboard.