imiconnect Developer Hub

Welcome to the imiconnect developer hub. You'll find all the resources to help you get started with imiconnect quickly. We are here to support you if you get stuck. Let's jump right in!

Get Started    API Reference

PartViews

ICMessagePartContainerView

The ICMessagePartContainerView Contains all the part views that represent the content of an ICMessageData instance.

Properties:

messagePartViews

NSMutableArray

The array of all the part views that are contained by the container view.

Methods:

Syntax
Description

(void)addPartView:(ICMessagePartView *)partView

Adds a part view to the container view

(void)resizeConstraints:(CGSize)size

Resizes the container’s layout constraints

(void)setMessageData:(id<ICMessageData>)messageData withMessageParts:(NSArray *)messageParts

Associates a message and its message parts with the container view.

ICMessagePartView

This is an abstract that represents a message part. This class can represent a text or an attachment for example.

Properties:

delegate

id<ICMessagePartViewDelegate>

See ICMessagePartViewDelegate description

messagePart

id<ICMessagePart>

The message part associated to the view

messageData

Id<ICMessageData>

The message data associated to the view

Methods:

Syntax
Description

(void)setMessagePart:(id<ICMessagePart>)messagePart withMessageData:(id<ICMessageData>)messageData

Associates a message and its message part with the part view

ICMessagePartViewDelegate

Methods:

Syntax
Description

(CGSize)messagePartView:(I*CMessagePartView )messagePartView sizeForMessagePart:(id<ICMessagePart>)messagePart

It provides the size for a message part.

(void)messagePartView:(ICMessagePartView *)messagePartView didUpdateHeight:(CGFloat)height

Informs when the height has changed.

(void)messagePartView:(ICMessagePartView *)messagePartView didRemoveMessagePart:(id<ICMessagePart>)messagePart

Informs when a message part has been removed.

ICMessagePartViewDataSource

Methods:

(void)resizeInContainerSize:(CGSize)containerSize

Resizes the message part view

ICMessagePartViewFactory

This interface represents all the methods needed to create the part views that will be displayed in either an inbox cell or a conversation cell

(NSString *)contentType

Indicates the type of the message part handled by the factory.

(ICMessagePartView *)createMessagePartView

Creates a new ICMessagePartView depending on the content type of the message part.

ICAudioPartViewFactory

This class implements the ICMessagePartViewFactory and is responsible for the creation of the ICAudioPartView

ICFilePartViewFactory

This class implements the ICMessagePartViewFactory and is responsible for the creation of the ICFilePartView

ICImagePartViewFactory

This class implements the ICMessagePartViewFactory and is responsible for the creation of the ICImagePartView

ICVideoPartViewFactory

This class implements the ICMessagePartViewFactory and is responsible for the creation of the ICVideoPartView

ICTextPartView

This component displays a text from a message

Properties:

textColor

UIColor

The text part view’s text color

font

UIFont

The text part view’s font

ICURLPartView

This component displays a URL preview from a message

ICMediaPartView

This component displays an attachment from a message.

Properties:

mediaDelegate

id<ICMediaPartViewDelegate>

See ICMediaPartViewDelegate description

mediaTapGestureRecognizer

UITapGestureRecognizer

The tap gesture recognizer that will be trigger when a user clicks on a media part view

Methods:

(void)displayDownloadView:(BOOL)shouldDisplayView

Displays/Hides the download view

(void)startDownload

Starts downloading a file attached to a media

(void)downloadWillStart

Tells the subclass that the download will start

(void)downloadDidEnd

Tells the subclass that the download will start

(void)showProcessIndicator:(BOOL)isProcessing

Shows/Hides the process indicator

ICAudioPartView

This component displays an audio attachment from a message.

Properties

durationTextColor

UIColor

The duration text color

durationFont

UIFont

The duration font

ICFilePartView

This component displays a file attachment from a message.

Properties:

fileTextColor

UIColor

The file text color

fileFont

UIFont

The file font

ICImagePartView

This component displays an image attachment from a message.

ICLocationPartView

This component displays a location attachment from a message.

ICVideoPartView

This component displays a video attachment from a message.

Properties:

durationTextColor

UIColor

The duration text color

durationFont

UIFont

The duration font

stateBackgroundColor

UIColor

The state background color

ICConnectionStatusView

The view is displayed to show the current connection status with the message broker.
3 statuses can be displayed: “Connected.”, “Connecting…” and “Disconnected.”

Properties:

disconnectedBackgroundColor

UIColor

The disconnected background color

disconnectedTextColor

UIColor

The disconnected text color

connectingBackgroundColor

UIColor

The connecting background color

connectingTextColor

UIColor

The connecting text color

connectedBackgroundColor

UIColor

The connected background color

connectedTextColor

UIColor

The connected text color

connectionStatus

ICConnectionStatus

The current connection status

ICConversationButton

This button allows the user to open a new conversation screen. Some features will be added to that component in the future.

Properties:

buttonBackgroundColor

UIColor

The conversation’s button background color

buttonTintColor

UIColor

The conversation’s tint background color

buttonTextColor

UIColor

The conversation’s text background color

buttonCornerRadius

CGFloat

The conversation’s corner radius

Updated 6 months ago

PartViews


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.