UIDevice.PlayInputClick Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Plays the system "click" event in response to user taps.
[Foundation.Export("playInputClick")]
public virtual void PlayInputClick ();
abstract member PlayInputClick : unit -> unit
override this.PlayInputClick : unit -> unit
- Attributes
Remarks
This method plays the standard system "keyboard click" sound when a user taps an input view or keyboard accessory view, with certain restrictions:
- The user has enabled "Keyboard Clicks" in Settings / Sounds:
- The UIView being tapped implements IUIInputViewAudioFeedback and overrides EnableInputClicksWhenVisible to return
true
.:
This can be used from a background thread.