Inherits from NSObject
Declared in PSHChatViewController.h

Overview

A share activity is just a relationship between a choice and an action to be performed after the user picked that choice. The choices are presented using the standard UIActionSheet when app user taps the plus sign on the right side of the text input area in the chat view.

Instance Methods

initWithText:andCallback:

Creates a new instance of PSHChatViewControllerShareActivity.

- (id)initWithText:(NSString *)text andCallback:(void ( ^ ) ( PSHChatViewController *))callback

Parameters

text

Text for the UIActionSheet button.

callback

Action to be performed after users taps the choice button.

Return Value

PSHChatViewControllerShareActivity instance given a choice / action.

Declared In

PSHChatViewController.h