Inherits from UIViewController
Declared in PSHChatViewController.h

Overview

PSHChatViewController presents a conversation with bubbled messages with useful features such a text input area which shrinks or expands itself depending on the text size or keyboard and orientation changes awareness.

Properties

chatId

Chat id for the conversation.

@property (nonatomic, strong) NSString *chatId

Declared In

PSHChatViewController.h

chatTitle

Title of chat view.

@property (nonatomic, strong) NSString *chatTitle

Declared In

PSHChatViewController.h

delegate

PSHChatViewDelegate for the PSHChatViewController. Developers must set this property before the view is presented whenever the view is instantiated from PSHEngine method instantiateMainTabBarViewController. Otherwise (instantiateChatViewController), the application delegate is assumed as the instance delegate.

@property (nonatomic, weak) id<PSHChatViewDelegate> delegate

Declared In

PSHChatViewController.h

shareActivities

An array of PSHChatViewControllerShareActivity instances.

@property (nonatomic, strong) NSArray *shareActivities

Declared In

PSHChatViewController.h

Instance Methods

lockKeyboard

Lock chat textfield keyboard.

- (void)lockKeyboard

Declared In

PSHChatViewController.h

performPickMediaFromCameraRollAndSend

Starts the flow to let the user pick a picture or video from his/her Camera Roll.

- (void)performPickMediaFromCameraRollAndSend

Declared In

PSHChatViewController.h

performSendContact

Starts the flow to let the user share a contact from his/her Address Book.

- (void)performSendContact

Declared In

PSHChatViewController.h

performSendLocation

Starts the flow to let the user share his/her location.

- (void)performSendLocation

Declared In

PSHChatViewController.h

performTakeAndSendPicture

Starts the flow to let the user take and share a picture.

- (void)performTakeAndSendPicture

Declared In

PSHChatViewController.h

performTakeAndSendVideo

Starts the flow to let the user take and share a video.

- (void)performTakeAndSendVideo

Declared In

PSHChatViewController.h

unlockKeyboard

Unlock chat textfield keyboard.

- (void)unlockKeyboard

Declared In

PSHChatViewController.h