UIInputViewAudioFeedback Protocol Reference
| Conforms to | |
| Framework | /System/Library/Frameworks/UIKit.framework |
| Availability | Available in iOS 4.2 and later. |
| Declared in | UIDevice.h |
Overview
The UIInputViewAudioFeedback protocol defines a single property for enabling a custom input or keyboard accessory view to play standard keyboard input clicks.
Implement this protocol in your custom subclass of UIView that you associate with your custom input Nib file. For more information, see Text, Web, and Editing Programming Guide for iOS.
Implementation of this protocol is optional but expected.
Properties
enableInputClicksWhenVisible
Specifies whether or not an input view enables input clicks.
Parameters
- enableInputClicksWhenVisible
Return
YESto enable input clicks by way of theplayInputClickmethod, orNOto disable input clicks. The value isNOby default.
Discussion
In your custom subclass of UIView, implement this property as a getter method. Return YES to enable input clicks in your custom input or keyboard accessory view, as follows:
- (BOOL) enableInputClicksWhenVisible { |
return YES; |
} |
Input clicks will be produced only if the user has also enabled keyboard clicks in Settings > Sounds.
Availability
- Available in iOS 4.2 and later.
Declared In
UIDevice.h© 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-10-27)