Keyboard Notification User Info Keys

Keys used to get values from the user information dictionary of keyboard notifications.

Topics

Constants

let UIKeyboardAnimationCurveUserInfoKey: String

The key for an NSNumber object containing a UIViewAnimationCurve constant that defines how the keyboard will be animated onto or off the screen.

let UIKeyboardAnimationDurationUserInfoKey: String

The key for an NSNumber object containing a double that identifies the duration of the animation in seconds.

let UIKeyboardIsLocalUserInfoKey: String

The key for an NSNumber object containing a Boolean that identifies whether the keyboard belongs to the current app. With multitasking on iPad, all visible apps are notified when the keyboard appears and disappears. The value of this key is true for the app that caused the keyboard to appear and false for any other apps.

let UIKeyboardFrameBeginUserInfoKey: String

The key for an NSValue object containing a CGRect that identifies the starting frame rectangle of the keyboard in screen coordinates. The frame rectangle reflects the current orientation of the device.

let UIKeyboardFrameEndUserInfoKey: String

The key for an NSValue object containing a CGRect that identifies the ending frame rectangle of the keyboard in screen coordinates. The frame rectangle reflects the current orientation of the device.