PartViews
com.imimobile.connect.ui.views.partviews
The classes in this packages are
- ICMessagePartContainerViewHolder
- ICMessagePartViewFactory
- ICMessagePartViewHolder
ICMessagePartContainerViewHolder
This class contains all the part views that represent the content of an ICMessageData instance.
bindMessage
This method binds message parts to respective message part view holder
Syntax: void bindMessage(ICMessageData messageData, ICMessagePart[] messageParts)
Parameters:
Parameters | Type | Description |
---|---|---|
messageData | ICMessageData | Content of ICMessageData |
messageParts | ICMessagePart[] | An array of message parts |
getRootViewGroup
This method is used to return partContainer viewGroup that can contain other part views.
Syntax: ViewGroup getRootViewGroup()
Return Value: Returns partContainer viewGroup
addPartView
This method is used to add partview from partView Holder to partContainer viewGroup.
Syntax: void addPartView(ICMessagePartViewHolder partViewHolder)
Parameters:
Parameter | Type | Description |
---|---|---|
partViewHolder -message partView holder |
setMessageViewStyle
This method sets style to message partContainer view holder and individual message partvview holders
Syntax: void setMessageViewStyle(ICMessageViewStyle style)
Parameters:
Parameter | Type | Description |
---|---|---|
style | ICMessageViewStyle | Message view style |
ICMessagePartViewFactory
This abstract class represents all the methods needed to create the partviews is displayed in either an inbox view or a conversation view
createPartView
This method sets style to message partContainer view holder and individual message partvview holders
Syntax: abstract ICMessagePartViewHolder createPartView(ViewGroup root)
Parameters:
Parameters | Type | Description |
---|---|---|
root | ViewGroup | message part container view group |
Return Value: Returns message part view holder.
getContentType
This method returns content type for message partview factory.
Syntax: String getContentType()
Return Value: Returns content type for message part view factory.
ICMessagePartViewHolder
This is an abstract class that represents a message part. This class can represent a text or an attachment
ICMessagePartViewHolder
Syntax: ICMessagePartViewHolder(View partView)
Parameters:
Parameter | Type | Description |
---|---|---|
partView | View | message part view |
bindMessagePart
This method binds the message part to MessagePartViewHolder.
Syntax: boolean bindMessagePart(ICMessagePart part, ICMessageData message)
Parameters:
Parameter | Type | Description |
---|---|---|
part | ICMessagePart | message part |
message | ICMessageData | ICMessageData |
Return Value: Returns 'true
binding message part is successful with MessagePartViewHolder, false
otherwise
setMessageViewStyle
This method sets message view style to message part view holder.
Syntax: void setMessageViewStyle(ICMessageViewStyle style)
Parameters:
Parameter | Type | Description |
---|---|---|
style | ICMessageViewStyle | message view style |
getView
This Method returns Message PartView holder.
Syntax: View getView()
Returns Value: Returns view object for message PartView holder
com.imimobile.connect.ui.views.partviews.location
ICLocationPartViewHolder
This class implements the ICMessagePartViewHolder
and will represent the Location part of the message.
ICLocationPartViewFactory
Factory class that creates ICLocationPartViewHolder instances.
com.imimobile.connect.ui.views.partviews.media
ICMediaPartViewHolder
This is an abstract class inherits from ICMessagePartViewHolder
and it represents media message part (attachment) of the message.
setClickable
This method is used to enable/disable media part view on Click functionality.
Syntax: void setClickable(boolean clickable)
Parameters:
Parameter | Type | Description |
---|---|---|
clickable | boolean | boolean true to make the media part view clickable, false otherwise |
onPriorToSetFile
This method is called ahead of setFile(File)
while displaying upload/download progress/button.
Syntax: void onPriorToSetFile()
setFile
This method is called post to download/upload/find
local file
Syntax: void setFile(File file)
Parameters:
Parameter | Type | Description |
---|---|---|
file | File | local file that is being uploaded |
com.imimobile.connect.ui.views.partviews.media.audio
ICAudioPartViewFactory
This class implements the ICMessagePartViewFactory and is responsible for the creation of the ICAudioPartView instances.
ICAudioPartViewHolder
This class implements the ICMediaPartViewHolder and will represent the Audio part of the message.
com.imimobile.connect.ui.views.partviews.media.file
ICFilePartViewFactory
This class implements the ICMessagePartViewFactory and is responsible for creating the ICFilePartView
ICFilePartViewHolder
This class implements the ICMediaPartViewHolder and will represent the file part of the message.
com.imimobile.connect.ui.views.partviews.media.image
ICImagePartViewFactory
This class implements the ICMessagePartViewFactory
and is responsible for create part of the ICImagePartView
ICImagePartViewHolder
This class implements the ICMediaPartViewHolder
and represent the Image part of the message
com.imimobile.connect.ui.views.partviews. media.video
ICVideoPartViewFactory
This class implements the ICMessagePartViewFactory
and is responsible for create part of ICVideoPartView
.
ICVideoPartViewHolder
This class implements the ICMediaPartViewHolder
and represents the Video part of the message.
com.imimobile.connect.ui.views.partviews.text
ICTextPartViewFactory
Concrete implementation of ICMessagePartViewFactory
, responsible for creating ICTextPartViewHolder
instances.
ICTextPartViewHolder
This class implements the ICMessagePartViewHolder
and will represent the text message part of the message
com.imimobile.connect.ui.views.partviews.url
ICURLPartViewFactory
Concrete implementation of ICMessagePartViewFactory
, responsible for creating ICURLPartViewHolder
instances.
ICURLPartViewHolder
This class implements the ICMessagePartViewHolder
and will represent the URL part of the message.
Updated over 1 year ago