|
LuxChat
2.0
Instant messenger for iOS
|
#import <JSQMessagesKeyboardController.h>
Instance Methods | |
| (instancetype) | - initWithTextView:contextView:panGestureRecognizer:delegate: |
| (void) | - beginListeningForKeyboard |
| (void) | - endListeningForKeyboard |
Properties | |
| id< JSQMessagesKeyboardControllerDelegate > | delegate |
| UITextView * | textView |
| UIView * | contextView |
| UIPanGestureRecognizer * | panGestureRecognizer |
| CGPoint | keyboardTriggerPoint |
| BOOL | keyboardIsVisible |
| CGRect | currentKeyboardFrame |
An instance of JSQMessagesKeyboardController manages responding to the hiding and showing of the system keyboard for editing its textView within its specified contextView. It also controls user interaction with the system keyboard via its panGestureRecognizer, allow the user to interactively pan the keyboard up and down in the contextView.
When the system keyboard frame changes, it posts the JSQMessagesKeyboardControllerNotificationKeyboardDidChangeFrame.
| - (void) beginListeningForKeyboard |
Tells the keyboard controller that it should begin listening for system keyboard notifications.
| - (void) endListeningForKeyboard |
Tells the keyboard controller that it should end listening for system keyboard notifications.
| - (instancetype) initWithTextView: | (UITextView *) | textView | |
| contextView: | (UIView *) | contextView | |
| panGestureRecognizer: | (UIPanGestureRecognizer *) | panGestureRecognizer | |
| delegate: | (id<JSQMessagesKeyboardControllerDelegate>) | delegate | |
Creates a new keyboard controller object with the specified textView, contextView, panGestureRecognizer, and delegate.
| textView | The text view in which the user is editing with the system keyboard. This value must not be nil. |
| contextView | The view in which the keyboard will be shown. This should be the parent or a sibling of textView. This value must not be nil. |
| panGestureRecognizer | The pan gesture recognizer responsible for handling user interaction with the system keyboard. This value must not be nil. |
| delegate | The object that acts as the delegate of the keyboard controller. |
JSQMessagesKeyboardController if created successfully, nil otherwise.
|
readnonatomicweak |
The view in which the keyboard will be shown. This should be the parent or a sibling of textView.
|
readnonatomicassign |
Returns the current frame of the keyboard if it is visible, otherwise CGRectNull.
|
readwritenonatomicweak |
The object that acts as the delegate of the keyboard controller.
|
readnonatomicassign |
Returns YES if the keyboard is currently visible, NO otherwise.
|
readwritenonatomicassign |
Specifies the distance from the keyboard at which the panGestureRecognizer should trigger user interaction with the keyboard by panning.
The x value of the point is not used.
|
readnonatomicweak |
The pan gesture recognizer responsible for handling user interaction with the system keyboard.
|
readnonatomicweak |
The text view in which the user is editing with the system keyboard.
1.8.9.1