提交 5a7e862c 编写于 作者: C Chris Bracken 提交者: GitHub

Update iOS HapticFeedback.vibrate implementation (#3702)

Use AudioServicesPlaySystemSound instead of AudioServicesPlayAlertSound.
This avoids the potential of a system beep on devices without support
for haptic feedback.
上级 dac08413
......@@ -77,7 +77,7 @@ using namespace shell;
}
- (void)vibrateHapticFeedback {
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
}
- (void)setSystemChromePreferredOrientations:(NSArray*)orientations {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册