MCETemplate Protocol Reference

Declared in MCETemplate.h

Overview

The MCETemplate protocol is required to implement the template class. It provides the UIViewController and UITableViewCells to display the content of inbox messages.

– displayViewController required method

The displayViewController method returns a UIViewController that implements the MCETemplateDisplay protocol that displays a single message on a full screen.

- (id<MCETemplateDisplay>)displayViewController

Return Value

Returns a UIViewController that implements the MCETemplateDisplay protocol that displays a single message on a full screen.

Discussion

The displayViewController method returns a UIViewController that implements the MCETemplateDisplay protocol that displays a single message on a full screen.

Declared In

MCETemplate.h

– shouldDisplayInboxMessage: required method

The shouldDisplayInboxMessage: method determines that a message can be opened. This is typically used to disallow expired messages from being opened but can also be used for other criteria.

- (BOOL)shouldDisplayInboxMessage:(MCEInboxMessage *)inboxMessage

Parameters

inboxMessage

A MCEInboxMessage object.

Return Value

TRUE if the message can be opened, FALSE otherwise.

Discussion

The shouldDisplayInboxMessage: method determines that a message can be opened. This is typically used to disallow expired messages from being opened but can also be used for other criteria.

Declared In

MCETemplate.h

– tableView:heightForRowAtIndexPath:inboxMessage: required method

Provides a method for changing the height of the UITableView content preview cells.

- (float)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath inboxMessage:(MCEInboxMessage *)message

Return Value

height in points.

Discussion

Provides a method for changing the height of the UITableView content preview cells.

Declared In

MCETemplate.h