Inherits from UIImageView
Declared in JSMessageInputView.h

Overview

An instance of JSMessageInputView defines the input toolbar for composing a new message that is to be displayed above the keyboard.

Tasks

Properties

sendButton

@property (weak, nonatomic) UIButton *sendButton
Discussion

The send button for the input view. The default value is an initialized UIButton whose appearance is styled according to the value of style during initialization.

Declared In

JSMessageInputView.h

style

@property (assign, nonatomic, readonly) JSMessageInputViewStyle style
Discussion

Returns the style appearance for the input view.

Declared In

JSMessageInputView.h

textView

@property (weak, nonatomic, readonly) JSMessageTextView *textView
Discussion

Returns the textView into which a new message is composed. This property is never nil.

Declared In

JSMessageInputView.h

Class Methods

maxHeight

The maximum height of the input view as determined by maxLines and textViewLineHeight. This value is used for controlling the animation of the growing and shrinking of the input view as the text changes in the textView.

+ (CGFloat)maxHeight

Return Value

The maximum height of the input view as determined by maxLines and textViewLineHeight. This value is used for controlling the animation of the growing and shrinking of the input view as the text changes in the textView.

Declared In

JSMessageInputView.h

maxLines

A contant indicating the maximum number of lines of text that can be displayed in the textView.

+ (CGFloat)maxLines

Return Value

A contant indicating the maximum number of lines of text that can be displayed in the textView.

Declared In

JSMessageInputView.h

textViewLineHeight

A constant indicating the height of one line of text in the input view.

+ (CGFloat)textViewLineHeight

Return Value

A constant indicating the height of one line of text in the input view.

Declared In

JSMessageInputView.h

Instance Methods

adjustTextViewHeightBy:

- (void)adjustTextViewHeightBy:(CGFloat)changeInHeight
Discussion

Adjusts the input view’s frame height by the given value.

Parameters

changeInHeight

The delta value by which to increase or decrease the existing height for the input view.

Declared In

JSMessageInputView.h

initWithFrame:style:delegate:panGestureRecognizer:

- (instancetype)initWithFrame:(CGRect)frame style:(JSMessageInputViewStyle)style delegate:(id<UITextViewDelegate,JSDismissiveTextViewDelegate>)delegate panGestureRecognizer:(UIPanGestureRecognizer *)panGestureRecognizer
Discussion

Initializes and returns an input view having the given frame, style, delegate, and panGestureRecognizer.

Parameters

frame

A rectangle specifying the initial location and size of the bubble view in its superview’s coordinates.

style

The style of the input view. @see JSMessageInputViewStyle.

delegate

An object that conforms to the UITextViewDelegate protocol and JSDismissiveTextViewDelegate protocol.

panGestureRecognizer

A UIPanGestureRecognizer used to dismiss the input view by dragging down.

Return Value

An initialized JSMessageInputView object or nil if the object could not be successfully initialized.

Declared In

JSMessageInputView.h