The classes in this packages are
- ICMessagePartContainerViewHolder
- ICMessagePartViewFactory
- ICMessagePartViewHolder
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:
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:
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:
style
ICMessageViewStyle
Message view style
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:
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.
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:
partView
View
message part view
bindMessagePart
This method binds the message part to MessagePartViewHolder.
Syntax: boolean bindMessagePart(ICMessagePart part,
ICMessageData message)
Parameters:
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:
style
ICMessageViewStyle
message view style
getView
This Method returns Message PartView holder.
Syntax: View getView()
Returns Value: Returns view object for message PartView holder
This class implements the ICMessagePartViewHolder
and will represent the Location part of the message.
Factory class that creates ICLocationPartViewHolder instances.
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:
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:
file
File
local file that is being uploaded
This class implements the ICMessagePartViewFactory and is responsible for the creation of the ICAudioPartView instances.
This class implements the ICMediaPartViewHolder and will represent the Audio part of the message.
This class implements the ICMessagePartViewFactory and is responsible for creating the ICFilePartView
This class implements the ICMediaPartViewHolder and will represent the file part of the message.
This class implements the ICMessagePartViewFactory
and is responsible for create part of the ICImagePartView
This class implements the ICMediaPartViewHolder
and represent the Image part of the message
This class implements the ICMessagePartViewFactory
and is responsible for create part of ICVideoPartView
.
This class implements the ICMediaPartViewHolder
and represents the Video part of the message.
Concrete implementation of ICMessagePartViewFactory
, responsible for creating ICTextPartViewHolder
instances.
This class implements the ICMessagePartViewHolder
and will represent the text message part of the message
Concrete implementation of ICMessagePartViewFactory
, responsible for creating ICURLPartViewHolder
instances.
This class implements the ICMessagePartViewHolder
and will represent the URL part of the message.
Updated 24 days ago