問題タブ [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.

0 投票する
1 に答える
117 参照

ios - UIImpactFeedbackGenerator の初期化

UIImpactFeedbackGeneratorでタイマーを初期化しTimeInterval=1.0ます。数秒後、下記のように を呼び出し、deinitHapticFeedback()次のビュー コントローラーに移動しますが、フィードバックは停止せず、新しい VC が表示されてから約 10 秒間発生し続けます。

(また、 に電話deinitHapticFeedback()してみましviewWillDisappear(_ animated: Bool)たが、同じことが起こります。)

a のより最適な deinit 関数について何か考えはありUIFeedbackGeneratorますか?

前もって感謝します!

0 投票する
1 に答える
31 参照

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 に相当するものはどれですか?