問題タブ [haptic-feedback]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ios - UIImpactFeedbackGenerator の初期化
UIImpactFeedbackGenerator
でタイマーを初期化しTimeInterval=1.0
ます。数秒後、下記のように を呼び出し、deinitHapticFeedback()
次のビュー コントローラーに移動しますが、フィードバックは停止せず、新しい VC が表示されてから約 10 秒間発生し続けます。
(また、 に電話deinitHapticFeedback()
してみましviewWillDisappear(_ animated: Bool)
たが、同じことが起こります。)
a のより最適な deinit 関数について何か考えはありUIFeedbackGenerator
ますか?
前もって感謝します!
android - Android で iOS の selectionChanged() ハプティックに相当するのはどれですか?
selectionChanged()
アンドロイドを探していました。Androidでいくつかの定数を見つけましたが、「selectionChanged」には何も見つかりませんでした:
https ://developer.android.com/reference/android/os/VibrationEffect
アップルのドキュメントは次のとおりです: https://developer.apple.com/documentation/uikit/uiselectionfeedbackgenerator/2374284-selectionchanged
android に相当するものはどれですか?