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

dataSource

id<ICMessagePartViewDataSoure>

See ICMessagePartViewDataSource Description

Methods:

Syntax
Description

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

Associates a message and its message part with the part view

(NSMutableArray *)getMenuItems

Get menu Items

(void)resizeInContainerSize:(CGSize)containerSize

Resizes the message part view

ICMessagePartViewDelegate

Methods:

(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

Styling:
This class allows you to customise the text part view in conversation screen.

Properties:

textColor

UIColor

The text part view’s text color

font

UIFont

The text part view’s font

Sample Code

[[ICTextPartView appearance] setTextColor:[UIColor blackColor]];
[[ICTextPartView appearance] setFont:[UIFont systemFontOfSize:12.0f weight:UIFontWeightRegular]];

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

downloadTapGestureRecognizer

UITapGestureRecognizer

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

Methods:

(void)displayDownloadView

Displays the download view

(void)hideDownloadView

Hides the download view

(void)processWillStart

Tells the subclass that a process (upload or download) will start

(void)processDidEnd

Tells the subclass that a process (upload or download) will start

(void)showProcessIndicator

Shows the process indicator

(void)hideProcessIndicator

Hides the process indicator

ICAudioPartView

This component displays an audio attachment from a message.

Styling:
This class allows you to customise the audio part view in conversation screen.

Properties

durationTextColor

UIColor

The duration text color

durationFont

UIFont

The duration font

Sample Code

[[ICAudioPartView appearance] setDurationTextColor:[UIColor blackColor]];
[[ICAudioPartView appearance] setDurationFont:[UIFont systemFontOfSize:12.0f weight:UIFontWeightRegular]];

ICFilePartView

This component displays a file attachment from a message.

Styling:
This class allows you to customise the file part view in conversation screen.

Properties:

fileTextColor

UIColor

The file text color

fileFont

UIFont

The file font

Sample Code

[[ICFilePartView appearance] setFileTextColor:[UIColor blackColor]];
[[ICFilePartView appearance] setFileFont:[UIFont systemFontOfSize:12.0f weight:UIFontWeightRegular]];

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.

Styling:
This class allows you to customise the video part view in conversation screen.

Properties:

durationTextColor

UIColor

The duration text color

durationFont

UIFont

The duration font

stateBackgroundColor

UIColor

The state background color

Sample Code

[[ICVideoPartView appearance] setDurationTextColor:[UIColor blackColor]];
[[ICVideoPartView appearance] setDurationFont:[UIFont systemFontOfSize:12.0f weight:UIFontWeightRegular]];
[[ICVideoPartView appearance] setStateBackgroundColor:[UIColor lightGrayColor]];

Updated 3 days 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.