PartViews (Discontinued)
Note
Please note that we have announced end of sale for Android UI SDK. It is no longer offered as a standard Webex Connect capability.
com.imimobile.connect.ui.views.partviews
The classes in this packages are:
ICMessagePartContainerViewHolder
This class contains all the part views that represent the content of an ICMessageData instance.
bindMessage
This method binds message parts to the 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 partview 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 displayed in either an inbox view or a conversation view.
createPartView
This method sets style to message partContainer view holder and individual message partview 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 the 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 represents 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.
ICConversationMessageViewFactory
Factory class that inherits from ICMessageViewFactory
and creates ICConversationMessageViewHolder
instances. Used as the default message view factory within ICConversationRecyclerView
.
Refer ICMessageViewFactory
, for details of the base methods, that are overridden by this class.
com.imimobile.connect.ui.conversation
ICConversationMessageViewHolder
Constructor
This method used to create the ICConversationMessageViewHolder class instance.
ICConversationMessageViewHolder
Public Constructor |
---|
public ICConversationMessageViewHolder(android.view.View messageView) |
bindMessage
This method binds message parts to respective message part view holder
Syntax: public void bindMessage(com.imimobile.connect.core.messaging.ICMessageData messageData, com.imimobile.connect.ui.interfaces.ICMessagePart[] messageParts)
Overrides: bindMessage in class com.imimobile.connect.ui.ICMessageViewHolder
Parameters:
Parameter | Description |
---|---|
messageData | ICMessageData |
messageParts | an Array of message parts |
bindAvatar
This method used to bind Avatar to Conversation message view holder
Syntax: public void bindAvatar(boolean isOutgoingMessage, android.graphics.Bitmap avatar)
Specified by: bindAvatar in class com.imimobile.connect.ui.ICMessageViewHolder
Parameters:
Parameter | Description |
---|---|
avatar | avatar bitmap |
setMessageViewStyle
This method sets style to conversation message view holder
Syntax: public void setMessageViewStyle(com.imimobile.connect.ui.ICMessageViewStyle style)
Specified by: setMessageViewStyle in class com.imimobile.connect.ui.ICMessageViewHolder
Parameters:
Parameter | Description |
---|---|
style | message view style |
getPartContainerViewHolder
This method returns message part container view holder
Syntax: public com.imimobile.connect.ui.views.partviews.ICMessagePartContainerViewHolder getPartContainerViewHolder()
Specified by: getPartContainerViewHolder in class com.imimobile.connect.ui.ICMessageViewHolder
Returns: returns message part container view holder
setStatusVisibility
This method used to set visibility for Status View in conversation Message view holder
Syntax: public void setStatusVisibility(int visibility)
Parameters:
Parameter | Description |
---|---|
visibility | One of View.VISIBLE, View.INVISIBLE, or View.GONE |
setQuickReplyVisibility
This method used to set visibility for QuickReply View in conversation Message view holder
Syntax: public void setQuickReplyVisibility(int visibility)
Parameters:
Parameter | Description |
---|---|
visibility | One of View.VISIBLE, View.INVISIBLE, or View.GONE |
setOnRetryClickListener
This method allows to register an object, which implements the ICConversationRecyclerView.OnRetryClickListener interface to listen for retry events.
Syntax: public void setOnRetryClickListener(com.imimobile.connect.ui.conversation.ICRetryClickListener onRetryClickListener)
Parameters:
Parameter | Description |
---|---|
onRetryClickListener | retry click listener |
setButtonClickListener
This method sets an ICButtonClickListener that will be notified when ICButton click events occur.
Syntax: public void setButtonClickListener(ICButtonClickListener listener)
Parameters:
Parameter | Description |
---|---|
listener | ICButtonClickListener instance |
Concrete implementation of ICMessageViewHolder
for use with ICConversationRecyclerView
.
Refer ICMessageViewFactory
, for details of the base methods, that are overridden by this class. In addition to the base, the method overrides this class exposes the following methods.
setTimeVisibility
This method sets the visibility of the time display
Syntax: boolean setTimeVisibilty(int visibility)
setStatusVisibility
This method sets the visibility of the status display.
Syntax: boolean setStatusVisibility(int visibility)
setOnRetryClickListener
This method Sets the listener which will be invoked when the retry message publication button is pressed.
Syntax: boolean setOnRetryClickListener(ICRetryClickListener listener)
com.imimobile.connect.ui.views.partviews.media.generic
ICGenericTemplateElementDetailsDialog
This class implements the ICGenericTemplateElementViewAdapter and will represent the generic template element details.
Constructor Detail
This method used to create the ICGenericTemplateElementDetailsDialog class instance.
ICGenericTemplateElementDetailsDialog
This method used to create the ICGenericTemplateElementDetailsDialog class instance.
Syntax: public ICGenericTemplateElementDetailsDialog(Context context, ICButtonClickListener listener)
Parameters:
Parameter | Description |
---|---|
context | Application context |
listener | To listen the button click events |
Methods
setStyle
This method sets style for the generic template element details view
Syntax: public void setStyle(ICGenericTemplateElementDetailsStyle style)
Parameters:
Parameter | Description |
---|---|
style | ICGenericTemplateElementViewStyle instance |
setData
This method sets the message data and element to display the generic template element details view
Syntax: public void setData(com.imimobile.connect.core.messaging.ICMessageData messageData, @NonNull com.imimobile.connect.core.messaging.ICGenericTemplateElement element)
Parameters:
Parameter | Description |
---|---|
messageData | message data |
element | generic template element |
onClick
Syntax: public void onClick(android.view.View v)
Specified by: onClick in interface android.view.View.OnClickListener
ICGenericTemplateElementDetailsStyle
This class provides style attributes that are utilized by ICGenericTemplateElementDetailsDialog for customization of generic template element details view components.
Syntax: public ICGenericTemplateElementDetailsStyle()
getBackgroundResource
This method gets the background resource id for generic template details view.
Syntax: public int getBackgroundResource()
Returns: background resource id
setBackgroundResource
This method sets the background resource id for generic template details view.
Syntax: public void setBackgroundResource(int backgroundResource)
Parameters:
Parameter | Description |
---|---|
backgroundResource | background resource id |
getBackgroundColor
This method gets the background color for generic template details view.
Syntax: public int getBackgroundColor()
Returns: background color
setBackgroundColor
This method sets the background color for generic template details view.
Syntax: ``public void setBackgroundColor(int backgroundColor)
Parameters:
Parameter | Description |
---|---|
backgroundColor | background color |
getTitleBarHeight
This method gets the height for title bar.
Syntax: public int getTitleBarHeight()
Returns: height
setTitleBarHeight
This method sets the height for title bar.
Syntax: public void setTitleBarHeight(int titleBarHeight)
Parameters:
Parameter | Description |
---|---|
titleBarHeight | height |
getCloseButtonWidth
This method gets the width for close button.
Syntax: public int getCloseButtonWidth()
Returns: width
setCloseButtonWidth
This method sets the width for close button.
Syntax: ``public void setCloseButtonWidth(int closeButtonWidth)
Parameters:
Parameter | Description |
---|---|
closeButtonWidth | width |
getCloseButtonHeight
This method gets the height for close button.
Syntax: public int getCloseButtonHeight()
Returns: height
setCloseButtonHeight
This method sets the height for close button.
Syntax: public void setCloseButtonHeight(int closeButtonHeight)
Parameters:
Parameter | Description |
---|---|
closeButtonHeight | height |
getCloseButtonMarginBottom
This method gets the margin bottom for close button.
Syntax: public int getCloseButtonMarginBottom()
Returns: margin bottom
getCloseButtonMarginLeft
This method gets the margin left for close button.
Syntax: public int getCloseButtonMarginLeft()
Returns: margin left
getCloseButtonMarginRight
This method gets the margin right for close button.
Syntax: public int getCloseButtonMarginRight()
Returns: margin right
getCloseButtonMarginTop
This method gets the margin top for close button.
Syntax: public int getCloseButtonMarginTop()
Returns: margin top
setCloseButtonMargin
This method sets the margin for close button.
Syntax: public void setCloseButtonMargin(int bottom, int left, int right, int top)
Parameters:
Parameter | Description |
---|---|
bottom | margin bottom |
left | margin left |
right | margin right |
top | margin top |
getCloseButtonImageResource
This method gets the image resource for close button.
Syntax: public int getCloseButtonImageResource()
Returns: image resource
setCloseButtonImageResource
This method sets the image resource for close button.
Syntax: public void setCloseButtonImageResource(int closeButtonImageResource)
Parameters:
Parameter | Description |
---|---|
closeButtonImageResource | image resource |
getImageBackgroundColor
This method gets the background color for image.
Syntax: public int getImageBackgroundColor()
Returns: background color
setImageBackgroundColor
This method sets the background color for image.
Syntax: public void setImageBackgroundColor(int imageBackgroundColor)
Parameters:
Parameter | Description |
---|---|
imageBackgroundColor | background color |
getImageMarginBottom
This method gets the margin bottom for image.
Syntax: public int getImageMarginBottom()
Returns: margin bottom
getImageMarginLeft
This method gets the margin left for image.
Syntax: public int getImageMarginLeft()
Returns: margin left
getImageMarginRight
This method gets the margin right for image.
Syntax: public int getImageMarginRight()
Returns: margin right
getImageMarginTop
This method gets the margin top for image.
Syntax: public int getImageMarginTop()
Returns: margin top
setImageMargin
This method sets the margin for image.
Syntax: public void setImageMargin(int bottom, int left, int right, int top)
Parameters:
Parameter | Description |
---|---|
visibility | margin bottom |
left | margin left |
right | margin right |
top | margin top |
getImageScaleType
This method gets the image scale type.
Syntax: public android.widget.ImageView.ScaleType getImageScaleType()
Returns: image scale type
setImageScaleType
This method sets the image scale type.
Syntax: public void setImageScaleType(android.widget.ImageView.ScaleType imageScaleType)
Parameters:
Parameter | Description |
---|---|
imageScaleType | image scale type |
getImageDotIndicatorMarginBottom
This method gets the margin bottom for image dot-indicator.
Syntax: public int getImageDotIndicatorMarginBottom()
Returns: margin bottom
getImageDotIndicatorMarginLeft
This method gets the margin left for image dot-indicator.
Syntax: public int getImageDotIndicatorMarginLeft()
Returns: margin left
getImageDotIndicatorMarginRight
This method gets the margin right for image dot-indicator.
Syntax: public int getImageDotIndicatorMarginRight()
Returns: margin right
getImageDotIndicatorMarginTop
This method gets the margin top for image dot-indicator.
Syntax: public int getImageDotIndicatorMarginTop()
Returns: margin top
setImageDotIndicatorMargin
This method sets the margin for image dot-indicator.
Syntax: public void setImageDotIndicatorMargin(int bottom, int left, int right, int top)
Parameters:
Parameter | Description |
---|---|
bottom - | margin bottom |
left | margin left |
right | margin right |
top | margin top |
getImageDotIndicatorColor
This method gets the color for image dot-indicator.
Syntax: public int getImageDotIndicatorColor()
Returns: color
setImageDotIndicatorColor
This method sets the color for image dot-indicator.
Syntax: public void setImageDotIndicatorColor(int imageDotIndicatorColor)
Parameters:
Parameter | Description |
---|---|
imageDotIndicatorColor | color |
getImageDotIndicatorCornerRadius
This method gets the corner radius for image dot-indicator.
Syntax: public int getImageDotIndicatorCornerRadius()
Returns: corner radius
setImageDotIndicatorCornerRadius
This method sets the corner radius for image dot-indicator.
Syntax: public void setImageDotIndicatorCornerRadius(int imageDotIndicatorCornerRadius)
Parameters:
Parameter | Description |
---|---|
imageDotIndicatorCornerRadius | corner radius |
getImageDotIndicatorSize
This method gets the size for image dot-indicator.
Syntax: public int getImageDotIndicatorSize()
Returns: size
setImageDotIndicatorSize
This method sets the size for image dot-indicator.
Syntax: public void setImageDotIndicatorSize(int imageDotIndicatorSize)
Parameters:
Parameter | Description |
---|---|
imageDotIndicatorSize | size |
getImageDotIndicatorSpacing
This method gets the spacing for image dot-indicator.
Syntax: public int getImageDotIndicatorSpacing()
Returns: spacing
setImageDotIndicatorSpacing
This method sets the spacing for image dot-indicator.
Syntax: public void setImageDotIndicatorSpacing(int imageDotIndicatorSpacing)
Parameters:
Parameter | Description |
---|---|
imageDotIndicatorSpacing | spacing |
getImageDotIndicatorStrokeColor
This method gets the stroke color for image dot-indicator.
Syntax: public int getImageDotIndicatorStrokeColor()
Returns: stroke color
setImageDotIndicatorStrokeColor
This method sets the stroke color for image dot-indicator.
Syntax: public void setImageDotIndicatorStrokeColor(int imageDotIndicatorStrokeColor)
Parameters:
Parameter | Description |
---|---|
imageDotIndicatorStrokeColor | stroke color |
getImageDotIndicatorStrokeWidth
This method gets the stroke width for image dot-indicator.
Syntax: public int getImageDotIndicatorStrokeWidth()
Returns: width
setImageDotIndicatorStrokeWidth
This method sets the stroke width for image dot-indicator.
Syntax: public void setImageDotIndicatorStrokeWidth(int imageDotIndicatorStrokeWidth)
Parameters:
Parameter | Description |
---|---|
imageDotIndicatorStrokeWidth | width |
getTitleTextColor
This method gets the text color for title.
Syntax: public int getTitleTextColor()
Returns: text color
setTitleTextColor
This method sets the text color for title.
Syntax: public void setTitleTextColor(int titleTextColor)
Parameters:
Parameter | Description |
---|---|
titleTextColor | text color |
getTitleTextSize
This method gets the text size for title.
Syntax: public float getTitleTextSize()
Returns: text size
setTitleTextSize
This method sets the text size for title.
Syntax: public void setTitleTextSize(float titleTextSize)
Parameters:
Parameter | Description |
---|---|
titleTextSize | text size |
getTitleTextTypeface
This method gets the text typeface for title.
Syntax: public android.graphics.Typeface getTitleTextTypeface()
Returns: text typeface
setTitleTextTypeface
This method sets the text typeface for title.
Syntax: public void setTitleTextTypeface(android.graphics.Typeface titleTextTypeface)
Parameters:
Parameter | Description |
---|---|
titleTextTypeface | text typeface |
getTitleTextAlignment
This method gets the text alignment for title.
Syntax: public int getTitleTextAlignment()
Returns: text alignment
setTitleTextAlignment
This method sets the text alignment for title.
Syntax: public void setTitleTextAlignment(int titleTextAlignment)
Parameters:
Parameter | Description |
---|---|
titleTextAlignment | text alignment |
getTitleMarginBottom
This method gets the margin bottom for title.
Syntax: public int getTitleMarginBottom()
Returns: margin bottom
getTitleMarginLeft
This method gets the margin left for title.
Syntax: public int getTitleMarginLeft()
Returns: margin left
getTitleMarginRight
This method gets the margin right for title.
Syntax: public int getTitleMarginRight()
Returns: margin right
getTitleMarginTop
This method gets the margin top for title.
Syntax: public int getTitleMarginTop()
Returns: margin top
setTitleMargin
This method sets the margin for title.
Syntax: public void setTitleMargin(int bottom, int left, int right, int top)
Parameters:
Parameter | Description |
---|---|
bottom - margin bottom | margin bottom |
left | margin left |
right | margin right |
top | margin top |
getTitleTextMaxLines
This method gets the text max lines for title.
Syntax: public int getTitleTextMaxLines()
Returns: text max lines
setTitleTextMaxLines
This method sets the text max lines for title.
Syntax: public void setTitleTextMaxLines(int titleTextMaxLines)
Parameters:
Parameter | Description |
---|---|
titleTextMaxLines | text max lines |
getSubTitleTextColor
This method gets the text color for sub title.
Syntax: public int getSubTitleTextColor()
Returns: text color
setSubTitleTextColor
This method sets the text color for sub title.
Syntax: public void setSubTitleTextColor(int subTitleTextColor)
Parameters:
Parameter | Description |
---|---|
subTitleTextColor | text color |
getSubTitleTextSize
This method gets the text size for sub title.
Syntax: public float getSubTitleTextSize()
Returns: text size
setSubTitleTextSize
This method sets the text size for sub title.
Syntax: public void setSubTitleTextSize(float subTitleTextSize)
Parameters:
Parameter | Description |
---|---|
subTitleTextSize | text size |
getSubTitleTextTypeface
This method gets the text typeface for sub title.
Syntax: public android.graphics.Typeface getSubTitleTextTypeface()
Returns: text typeface
setSubTitleTextTypeface
This method sets the text typeface for sub title.
Syntax: public void setSubTitleTextTypeface(android.graphics.Typeface subTitleTextTypeface)
Parameters:
Parameter | Description |
---|---|
subTitleTextTypeface | text typeface |
getSubTitleTextAlignment
This method gets the text alignment for sub title.
Syntax: public int getSubTitleTextAlignment()
Returns: text alignment
setSubTitleTextAlignment
This method sets the text alignment for sub title.
Syntax: public void setSubTitleTextAlignment(int subTitleTextAlignment)
Parameters:
Parameter | Description |
---|---|
subTitleTextAlignment | text alignment |
getSubTitleMarginBottom
This method gets the margin bottom for sub title.
Syntax: public int getSubTitleMarginBottom()
Returns: margin bottom
getSubTitleMarginLeft
This method gets the margin left for sub title.
Syntax: public int getSubTitleMarginLeft()
Returns: margin left
getSubTitleMarginRight
This method gets the margin right for sub title.
Syntax: public int getSubTitleMarginRight()
Returns: margin right
getSubTitleMarginTop
This method gets the margin top for sub title.
Syntax: public int getSubTitleMarginTop()
Returns: margin top
setSubTitleMargin
This method sets the margin for sub title.
Syntax: public void setSubTitleMargin(int bottom, int left, int right, int top)
Parameters:
Parameter | Description |
---|---|
bottom | margin bottom |
left | margin left |
right | margin right |
top | margin top |
getSubTitleTextMaxLines
This method gets the text max lines for sub title.
Syntax: public int getSubTitleTextMaxLines()
Returns: text max lines
setSubTitleTextMaxLines
This method sets the text max lines for sub title.
Syntax: public void setSubTitleTextMaxLines(int subTitleTextMaxLines)
Parameters:
Parameter | Description |
---|---|
subTitleTextMaxLines | text max lines |
getSubTitleTextLineSpacingExtra
This method gets the text line spacing extra for sub title.
Syntax: public int getSubTitleTextLineSpacingExtra()
Returns: text line spacing extra
setSubTitleTextLineSpacingExtra
This method sets the text line spacing extra for sub title.
Syntax: public void setSubTitleTextLineSpacingExtra(int subTitleTextLineSpacingExtra)
Parameters:
Parameter | Description |
---|---|
subTitleTextLineSpacingExtra | text line spacing extra |
getPrimaryButtonHeight
This method gets the height for primary button.
Syntax: public int getPrimaryButtonHeight()
Returns: height
setPrimaryButtonHeight
This method sets the height for primary button.
Syntax: public void setPrimaryButtonHeight(int primaryButtonHeight)
Parameters:
Parameter | Description |
---|---|
primaryButtonHeight | height |
getPrimaryButtonBackgroundResource
This method gets the background resource for primary button.
Syntax: public int getPrimaryButtonBackgroundResource()
Returns: background resource
setPrimaryButtonBackgroundResource
This method sets the background resource for primary button.
Syntax: public void setPrimaryButtonBackgroundResource(int primaryButtonBackgroundResource)
Parameters:
Parameter | Description |
---|---|
primaryButtonBackgroundResource | background resource |
getPrimaryButtonTextColor
This method gets the text color for primary button.
Syntax: public int getPrimaryButtonTextColor()
Returns: text color
setPrimaryButtonTextColor
This method sets the text color for primary button.
Syntax: public void setPrimaryButtonTextColor(int primaryButtonTextColor)
Parameters:
Parameter | Description |
---|---|
primaryButtonTextColor | text color |
getPrimaryButtonTextSize
This method gets the text size for primary button.
Syntax: public float getPrimaryButtonTextSize()
Returns: text size
setPrimaryButtonTextSize
This method sets the text size for primary button.
Syntax: public void setPrimaryButtonTextSize(float primaryButtonTextSize)
Parameters:
Parameter | Description |
---|---|
primaryButtonTextSize | text size |
getPrimaryButtonTextTypeface
This method gets the text typeface for primary button.
Syntax: public android.graphics.Typeface getPrimaryButtonTextTypeface()
Returns: text typeface
setPrimaryButtonTextTypeface
This method sets the text typeface for primary button.
Syntax: public void setPrimaryButtonTextTypeface(android.graphics.Typeface primaryButtonTextTypeface)
Parameters:
Parameter | Description |
---|---|
primaryButtonTextTypeface | text typeface |
getPrimaryButtonTextAlignment
This method gets the text alignment for primary button.
Syntax: public int getPrimaryButtonTextAlignment()
Returns: text alignment
setPrimaryButtonTextAlignment
This method gets the text alignment for primary button.
Syntax: public void setPrimaryButtonTextAlignment(int primaryButtonTextAlignment)
Parameters:
Parameter | Description |
---|---|
primaryButtonTextAlignment | text alignment |
getPrimaryButtonMarginBottom
This method gets the margin bottom for primary button.
Syntax: public int getPrimaryButtonMarginBottom()
Returns: margin bottom
getPrimaryButtonMarginLeft
This method gets the margin left for primary button.
Syntax: public int getPrimaryButtonMarginLeft()
Returns: margin left
getPrimaryButtonMarginRight
This method gets the margin right for primary button.
Syntax: public int getPrimaryButtonMarginRight()
Returns: margin right
getPrimaryButtonMarginTop
This method gets the margin top for primary button.
Syntax: public int getPrimaryButtonMarginTop()
Returns: margin top
setPrimaryButtonMargin
This method sets the margin for primary button.
Syntax: public void setPrimaryButtonMargin(int bottom, int left, int right, int top)
Parameters:
Parameter | Description |
---|---|
bottom | margin bottom |
left | margin ledt |
right | margin right |
top | margin top |
isPrimaryButtonTextAllCaps
This method gets the text all caps for primary button.
Syntax: public boolean isPrimaryButtonTextAllCaps()
Returns: true if text is all caps otherwise false
setPrimaryButtonTextAllCaps
This method is used to enable the text all caps for primary button.
Syntax: public void setPrimaryButtonTextAllCaps(boolean primaryButtonTextAllCaps)
Parameters:
Parameter | Description |
---|---|
primaryButtonTextAllCaps | text is all caps |
getSecondaryButtonHeight
This method gets the height for secondary button.
Syntax: public int getSecondaryButtonHeight()
Returns: Height
setSecondaryButtonHeight
This method sets the height for secondary button.
Syntax: public void setSecondaryButtonHeight(int secondaryButtonHeight)
Parameters:
Parameter | Description |
---|---|
secondaryButtonHeight | height |
getSecondaryButtonBackgroundResource
This method gets the background resource for secondary button.
Syntax: public int getSecondaryButtonBackgroundResource()
Returns: background resource
setSecondaryButtonBackgroundResource
This method sets the background resource for secondary button.
Syntax: public void setSecondaryButtonBackgroundResource(int secondaryButtonBackgroundResource)
Parameters:
Parameter | Description |
---|---|
secondaryButtonBackgroundResource | background resource |
getSecondaryButtonTextColor
This method gets the text color for secondary button.
Syntax: public int getSecondaryButtonTextColor()
Returns: text color
setSecondaryButtonTextColor
This method sets the text color for secondary button.
Syntax: public void setSecondaryButtonTextColor(int secondaryButtonTextColor)
Parameters:
Parameter | Description |
---|---|
secondaryButtonTextColor | text color |
getSecondaryButtonTextSize
This method gets the text size for secondary button.
Syntax: public float getSecondaryButtonTextSize()
Returns: text size
setSecondaryButtonTextSize
This method sets the text size for secondary button.
Syntax: public void setSecondaryButtonTextSize(float secondaryButtonTextSize)
Parameters:
Parameter | Description |
---|---|
secondaryButtonTextSize | text size |
getSecondaryButtonTextTypeface
This method gets the text typeface for secondary button.
Syntax: public android.graphics.Typeface getSecondaryButtonTextTypeface()
Returns: text typeface
setSecondaryButtonTextTypeface
This method sets the text typeface for secondary button.
Syntax: public void setSecondaryButtonTextTypeface(android.graphics.Typeface secondaryButtonTextTypeface)
Parameters:
Parameter | Description |
---|---|
secondaryButtonTextTypeface | text typeface |
getSecondaryButtonTextAlignment
This method gets the text alignment for secondary button.
Syntax: public int getSecondaryButtonTextAlignment()
Returns: text alignment
setSecondaryButtonTextAlignment
This method sets the text alignment for secondary button.
Syntax: public void setSecondaryButtonTextAlignment(int secondaryButtonTextAlignment)
Parameters:
Parameter | Description |
---|---|
secondaryButtonTextAlignment | text alignment |
getSecondaryButtonMarginBottom
This method gets the margin bottom for secondary button.
Syntax: public int getSecondaryButtonMarginBottom()
Returns: margin bottom
getSecondaryButtonMarginLeft
This method gets the margin left for secondary button.
Syntax: public int getSecondaryButtonMarginLeft()
Returns: margin left
getSecondaryButtonMarginRight
This method gets the margin right for secondary button.
Syntax: public int getSecondaryButtonMarginRight()
Returns: margin right
getSecondaryButtonMarginTop
This method gets the margin top for secondary button.
Syntax: public int getSecondaryButtonMarginTop()
Returns: margin top
setSecondaryButtonMargin
This method sets the margin for secondary button.
Syntax: public void setSecondaryButtonMargin(int bottom, int left, int right, int top)
Parameters:
Parameter | Description |
---|---|
bottom | margin bottom |
left | margin left |
right | margin right |
top | margin top |
isSecondaryButtonTextAllCaps
This method gets the text all caps for secondary button.
Syntax: public boolean isSecondaryButtonTextAllCaps()
Returns: true if text is all caps otherwise false
setSecondaryButtonTextAllCaps
This method is used to enable the text all caps for secondary button.
Syntax: public void setSecondaryButtonTextAllCaps(boolean secondaryButtonTextAllCaps)
Parameters:
Parameter | Description |
---|---|
secondaryButtonTextAllCaps | text is all caps |
ICGenericTemplateElementViewAdapter
This class implements the ICGenericTemplatePartViewHolder and will represent the generic template elements view.
ICGenericTemplateElementViewAdapter
This method used to create the ICGenericTemplateElementViewAdapter class instance.
Syntax: public ICGenericTemplateElementViewAdapter(android.content.Context context, ICGenericTemplateElementViewAdapter.OnElementClickListener itemClickListener, ICButtonClickListener buttonClickListener)
Parameters:
Parameter | Description |
---|---|
context | Application context |
itemClickListener | To listen the element click events |
buttonClickListener | To listen the button click events |
Methods
setRecyclerView
This method sets the recycler view.
Syntax: public void setRecyclerView(androidx.recyclerview.widget.RecyclerView recyclerView)
Parameters:
Parameter | Description |
---|---|
recyclerView | recycler view instance |
setStyle
This method sets style for the generic template element view
Syntax: public void setStyle(ICGenericTemplateElementViewStyle style)
Parameters:
Parameter | Description |
---|---|
style | ICGenericTemplateElementViewStyle instance |
setData
This method sets the message data with elements to display view
Syntax: public void setData(com.imimobile.connect.core.messaging.ICMessageData messageData, java.util.List<com.imimobile.connect.core.messaging.ICGenericTemplateElement> elements)
Parameters:
Parameter | Description |
---|---|
messageData | message data |
elements | list of generic template elements |
onCreateViewHolder
This method calls onCreateViewHolder(ViewGroup, int) to create a new GenericTemplateElementViewHolder and initializes some private fields to be used by RecyclerView.
Syntax: @NonNull public androidx.recyclerview.widget.RecyclerView.ViewHolder onCreateViewHolder(@NonNull android.view.ViewGroup parent, int viewType)
Specified by: onCreateViewHolder in class androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
Parameters:
Parameter | Description |
---|---|
parent | ViewGroup |
viewType | int |
Returns: VH
onBindViewHolder
Called by RecyclerView to display the data at the specified position. This method should update the contents of the GenericTemplateElementViewHolder.itemView to reflect the item at the given position.
Syntax: public void onBindViewHolder(@NonNull androidx.recyclerview.widget.RecyclerView.ViewHolder holder, int position)
Specified by: onBindViewHolder in class androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
Parameters:
Parameter | Description |
---|---|
holder | - |
position | - |
getItemCount
Returns the total number of items in the data set held by the adapter.
Syntax: public int getItemCount()
Specified by: getItemCount in class androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
Returns: The total number of items in this adapter.
ICGenericTemplateElementViewAdapter.OnElementClickListener
This interface used to listen the generic template element click events
Method
onElementClick
This method invoked on the element clicked
Syntax: void onElementClick(com.imimobile.connect.core.messaging.ICMessageData messageData, com.imimobile.connect.core.messaging.ICGenericTemplateElement element)
Parameters:
Parameter | Description |
---|---|
messageData | selected message data |
element | selected element |
ICGenericTemplateElementViewStyle
This class provides style attributes that are utilized by ICGenericTemplateElementViewAdapter for customization of generic template element view components.
Constructor Detail
ICGenericTemplateElementViewStyle
Syntax: public ICGenericTemplateElementViewStyle()
Method Detail
getWidth
This method gets width for generic template element view.
Syntax: public int getWidth()
Returns: width for generic template element view.
setWidth
This method set width for generic template element view.
Syntax: public void setWidth(int width)
Parameters:
Parameter | Description |
---|---|
width | for generic template element view. |
getHeight
This method gets height for generic template element view.
Syntax: public int getHeight()
Returns: height for generic template element view.
setHeight
This method sets height for generic template element view.
Syntax: public void setHeight(int height)
Parameters:
Parameter | Description |
---|---|
height | height for generic template element view. |
getBackgroundColor
This method gets the background color for generic template element view.
Syntax: public int getBackgroundColor()
Returns: background color
setBackgroundColor
This method sets the background color for generic template element view.
Syntax: public void setBackgroundColor(int backgroundColor)
Parameters:
Parameter | Description |
---|---|
backgroundColor | background color |
getForegroundResource
This method gets the foreground resource for generic template element view.
Syntax: public int getForegroundResource()
Returns: foreground resource
setForegroundResource
This method sets the foreground resource for generic template element view.
Syntax: public void setForegroundResource(int foregroundResource)
Parameters:
Parameter | Description |
---|---|
foregroundResource | foreground resource |
getCornerRadius
This method gets the corner radius for generic template element view.
Syntax: public float getCornerRadius()
Returns: corner radius
setCornerRadius
This method sets the corner radius for generic template element view.
Syntax: public void setCornerRadius(float cornerRadius)
Parameters:
Parameter | Description |
---|---|
cornerRadius | corner radius |
getMarginBottom
This method gets the margin bottom for generic template element view.
Syntax: public int getMarginBottom()
Returns: margin bottom
getMarginLeft
This method gets the margin left for generic template element view.
Syntax: public int getMarginLeft()
Returns: margin left
getMarginRight
This method gets the margin right for generic template element view.
Syntax: public int getMarginRight()
Returns: margin right
getMarginTop
This method gets the margin top for generic template element view.
Syntax: public int getMarginTop()
Returns: margin top
setMargin
This method sets the margin for generic template element view.
Syntax: public void setMargin(int bottom, int left, int right, int top)
Parameters:
Parameter | Description |
---|---|
bottom | margin bottom |
left | margin left |
right | margin right |
top | margin top |
getPaddingBottom
This method gets the padding bottom for generic template element view.
Syntax: public int getPaddingBottom()
Returns: padding bottom
getPaddingLeft
This method gets the padding left for generic template element view.
Syntax: public int getPaddingLeft()
Returns: padding left
getPaddingRight
This method gets the padding right for generic template element view.
Syntax: public int getPaddingRight()
Returns: padding right
getPaddingTop
This method gets the padding top for generic template element view.
Syntax: public int getPaddingTop()
Returns:padding top
setPadding
This method sets the padding for generic template element view.
Syntax: public void setPadding(int bottom, int left, int right, int top)
Parameters:
Parameter | Description |
---|---|
bottom | padding bottom |
left | padding left |
right | padding right |
top | padding top |
getImageScaleType
This method gets the image scale type.
Syntax: public android.widget.ImageView.ScaleType getImageScaleType()
Returns: image scale type
setImageScaleType
This method sets the image scale type.
Syntax: public void setImageScaleType(android.widget.ImageView.ScaleType imageScaleType)
Parameters:
Parameter | Description |
---|---|
imageScaleType | image scale type |
getTitleBackgroundColor
This method gets the title background color.
Syntax: public int getTitleBackgroundColor()
Returns: title background color
setTitleBackgroundColor
This method sets the title background color.
Syntax: public void setTitleBackgroundColor(int titleBackgroundColor)
Parameters:
Parameter | Description |
---|---|
titleBackgroundColor | title background color |
getTitleBackgroundPaddingBottom
This method gets the padding bottom for title background.
Syntax: public int getTitleBackgroundPaddingBottom()
Returns: padding bottom
getTitleBackgroundPaddingLeft
This method gets the padding left for title background.
Syntax: public int getTitleBackgroundPaddingLeft()
Returns: padding left
getTitleBackgroundPaddingRight
This method gets the padding right for title background.
Syntax: public int getTitleBackgroundPaddingRight()
Returns: padding right
getTitleBackgroundPaddingTop
This method gets the padding top for title background.
Syntax: public int getTitleBackgroundPaddingTop()
Returns: padding top
setTitleBackgroundPadding
This method sets the padding for title background.
Syntax: public void setTitleBackgroundPadding(int bottom, int left, int right, int top)
Parameters:
Parameter | Description |
---|---|
bottom | padding bottom |
left | padding left |
right | padding right |
top | padding top |
getTitleTextColor
This method gets the text color for title.
Syntax: public int getTitleTextColor()
Returns: text color
setTitleTextColor
This method sets the text color for title.
Syntax: public void setTitleTextColor(int titleTextColor)
Parameters:
Parameter | Description |
---|---|
titleTextColor | text color |
getTitleTextSize
This method gets the text size for title.
Syntax: public float getTitleTextSize()
Returns: text size
setTitleTextSize
This method sets the text size for title.
Syntax: public void setTitleTextSize(float titleTextSize)
Parameters:
Parameter | Description |
---|---|
titleTextSize | text size |
getTitleTextTypeface
This method gets the text typeface for title.
Syntax: public android.graphics.Typeface getTitleTextTypeface()
Returns: text typeface
setTitleTextTypeface
This method sets the text typeface for title.
Syntax: public void setTitleTextTypeface(android.graphics.Typeface titleTextTypeface)
Parameters:
Parameter | Description |
---|---|
titleTextTypeface | text typeface |
getTitleTextAlignment
This method gets the text alignment for title.
Syntax: public int getTitleTextAlignment()
Returns: text alignment
setTitleTextAlignment
This method sets the text alignment for title.
Syntax: public void setTitleTextAlignment(int titleTextAlignment)
Parameters:
Parameter | Description |
---|---|
titleTextAlignment | text alignment |
getTitleMarginBottom
This method gets the margin bottom for title.
Syntax: public int getTitleMarginBottom()
Returns:margin bottom
getTitleMarginLeft
This method gets the margin left for title.
Syntax: public int getTitleMarginLeft()
Returns:margin left
getTitleMarginRight
This method gets the margin right for title.
Syntax: public int getTitleMarginRight()
Returns: margin right
getTitleMarginTop
This method gets the margin top for title.
Syntax: public int getTitleMarginTop()
Returns: margin top
setTitleMargin
This method sets the margin for title.
Syntax: public void setTitleMargin(int bottom, int left, int right, int top)
Parameters:
Parameter | Description |
---|---|
bottom | margin bottom |
left | margin left |
right | margin right |
top | margin top |
getTitleTextMaxLines
This method gets the text max lines for title.
Syntax: public int getTitleTextMaxLines()
Returns: text max lines
setTitleTextMaxLines
This method sets the text max lines for title.
Syntax: public void setTitleTextMaxLines(int titleTextMaxLines)
Parameters:
Parameter | Description |
---|---|
titleTextMaxLines | text max lines |
getSubTitleTextColor
This method gets the text color for sub title.
Syntax: public int getSubTitleTextColor()
Returns: text color
setSubTitleTextColor
This method sets the text color for sub title.
Syntax: public void setSubTitleTextColor(int subTitleTextColor)
Parameters:
Parameter | Description |
---|---|
subTitleTextColor | text color |
getSubTitleTextSize
This method gets the text size for sub title.
Syntax: public float getSubTitleTextSize()
Returns: text size
setSubTitleTextSize
This method sets the text size for sub title.
Syntax: public void setSubTitleTextSize(float subTitleTextSize)
Parameters:
Parameter | Description |
---|---|
subTitleTextSize | text size |
getSubTitleTextTypeface
This method gets the text typeface for sub title.
Syntax: public android.graphics.Typeface getSubTitleTextTypeface()
Returns: text typeface
setSubTitleTextTypeface
This method sets the text typeface for sub title.
Syntax: public void setSubTitleTextTypeface(android.graphics.Typeface subTitleTextTypeface)
Parameters:
Parameter | Description |
---|---|
subTitleTextTypeface | text typeface |
getSubTitleTextAlignment
This method gets the text alignment for sub title.
Syntax: public int getSubTitleTextAlignment()
Returns: text alignment
setSubTitleTextAlignment
This method sets the text alignment for sub title.
Syntax: public void setSubTitleTextAlignment(int subTitleTextAlignment)
Parameters:
Parameter | Description |
---|---|
subTitleTextAlignment | text alignment |
getSubTitleMarginBottom
This method gets the margin bottom for sub title.
Syntax: public int getSubTitleMarginBottom()
Returns: margin bottom
getSubTitleMarginLeft
This method gets the margin left for sub title.
Syntax: public int getSubTitleMarginLeft()
Returns: margin left
getSubTitleMarginRight
This method gets the margin right for sub title.
Syntax: public int getSubTitleMarginRight()
Returns: margin right
getSubTitleMarginTop
This method gets the margin top for sub title.
Syntax: public int getSubTitleMarginTop()
Returns: margin top
setSubTitleMargin
This method sets the margin for sub title.
Syntax: public void setSubTitleMargin(int bottom, int left, int right, int top)
Parameters:
Parameter | Description |
---|---|
bottom | margin bottom |
left | margin left |
right | margin right |
top | margin top |
getSubTitleTextMaxLines
This method gets the text max lines for sub title.
Syntax: public int getSubTitleTextMaxLines()
Returns: text max lines
setSubTitleTextMaxLines
This method sets the text max lines for sub title.
Syntax: public void setSubTitleTextMaxLines(int subTitleTextMaxLines)
Parameters:
Parameter | Description |
---|---|
subTitleTextMaxLines | text max lines |
getPrimaryButtonHeight
This method gets the height for primary button.
Syntax: public int getPrimaryButtonHeight()
Returns: Height
setPrimaryButtonHeight
This method sets the height for primary button.
Syntax: public void setPrimaryButtonHeight(int primaryButtonHeight)
Parameters:
Parameter | Description |
---|---|
primaryButtonHeight | height |
getPrimaryButtonBackgroundResource
This method gets the background resource for primary button.
Syntax: public int getPrimaryButtonBackgroundResource()
Returns: background resource
setPrimaryButtonBackgroundResource
This method sets the background resource for primary button.
Syntax: public void setPrimaryButtonBackgroundResource(int primaryButtonBackgroundResource)
Parameters:
Parameter | Description |
---|---|
primaryButtonBackgroundResource | background resource |
getPrimaryButtonTextColor
This method gets the text color for primary button.
Syntax: public int getPrimaryButtonTextColor()
Returns: text color
setPrimaryButtonTextColor
This method sets the text color for primary button.
Syntax: public void setPrimaryButtonTextColor(int primaryButtonTextColor)
Parameters:
Parameter | Description |
---|---|
primaryButtonTextColor | text color |
##getPrimaryButtonTextSize
This method gets the text size for primary button.
Syntax: public float getPrimaryButtonTextSize()
Returns: text size
setPrimaryButtonTextSize
This method sets the text size for primary button.
Syntax: public void setPrimaryButtonTextSize(float primaryButtonTextSize)
Parameters:
Parameter | Description |
---|---|
primaryButtonTextSize | text size |
getPrimaryButtonTextTypeface
This method gets the text typeface for primary button.
Syntax: public android.graphics.Typeface getPrimaryButtonTextTypeface()
Returns: text typeface
setPrimaryButtonTextTypeface
This method sets the text typeface for primary button.
Syntax: public void setPrimaryButtonTextTypeface(android.graphics.Typeface primaryButtonTextTypeface)
Parameters:
Parameter | Description |
---|---|
primaryButtonTextTypeface | text typeface |
getPrimaryButtonTextAlignment
This method gets the text alignment for primary button.
Syntax: public int getPrimaryButtonTextAlignment()
Returns: text alignment
setPrimaryButtonTextAlignment
This method gets the text alignment for primary button.
Syntax: public void setPrimaryButtonTextAlignment(int primaryButtonTextAlignment)
Parameters:
Parameter | Description |
---|---|
primaryButtonTextAlignment | text alignment |
getPrimaryButtonMarginBottom
This method gets the margin bottom for primary button.
Syntax: public int getPrimaryButtonMarginBottom()
Returns: margin bottom
getPrimaryButtonMarginLeft
This method gets the margin left for primary button.
Syntax: public int getPrimaryButtonMarginLeft()
Returns: margin left
getPrimaryButtonMarginRight
This method gets the margin right for primary button.
Syntax: public int getPrimaryButtonMarginRight()
Returns: margin right
getPrimaryButtonMarginTop
This method gets the margin top for primary button.
Syntax: public int getPrimaryButtonMarginTop()
Returns: margin top
setPrimaryButtonMargin
This method sets the margin for primary button.
Syntax: public void setPrimaryButtonMargin(int bottom, int left, int right, int top)
Parameters:
Parameter | Description |
---|---|
bottom | margin bottom |
left | margin left |
right | margin right |
top | margin top |
isPrimaryButtonTextAllCaps
This method gets the text all caps for primary button.
Syntax: public boolean isPrimaryButtonTextAllCaps()
Returns: true if text is all caps otherwise false
setPrimaryButtonTextAllCaps
This method is used to enable the text all caps for primary button.
Syntax: public void setPrimaryButtonTextAllCaps(boolean primaryButtonTextAllCaps)
Parameters:
Parameter | Description |
---|---|
primaryButtonTextAllCaps | text is all caps |
getSecondaryButtonHeight
This method gets the height for secondary button.
Syntax: public int getSecondaryButtonHeight()
Returns: Height
setSecondaryButtonHeight
This method sets the height for secondary button.
Syntax: public void setSecondaryButtonHeight(int secondaryButtonHeight)
Parameters:
Parameter | Description |
---|---|
secondaryButtonHeight | height |
getSecondaryButtonBackgroundResource
This method gets the background resource for secondary button.
Syntax: public int getSecondaryButtonBackgroundResource()
Returns: background resource
setSecondaryButtonBackgroundResource
This method sets the background resource for secondary button.
Syntax: public void setSecondaryButtonBackgroundResource(int secondaryButtonBackgroundResource)
Parameters:
Parameter | Description |
---|---|
secondaryButtonBackgroundResource | background resource |
getSecondaryButtonTextColor
This method gets the text color for secondary button.
Syntax: public int getSecondaryButtonTextColor()
Returns: text color
setSecondaryButtonTextColor
This method sets the text color for secondary button.
Syntax: public void setSecondaryButtonTextColor(int secondaryButtonTextColor)
Parameters:
Parameter | Description |
---|---|
secondaryButtonTextColor | text color |
getSecondaryButtonTextSize
This method gets the text size for secondary button.
Syntax: public float getSecondaryButtonTextSize()
Returns: text size
setSecondaryButtonTextSize
This method sets the text size for secondary button.
Syntax: public void setSecondaryButtonTextSize(float secondaryButtonTextSize)
Parameters:
Parameter | Description |
---|---|
secondaryButtonTextSize | text size |
getSecondaryButtonTextTypeface
This method gets the text typeface for secondary button.
Syntax: public android.graphics.Typeface getSecondaryButtonTextTypeface()
Returns: text typeface
setSecondaryButtonTextTypeface
This method sets the text typeface for secondary button.
Syntax: public void setSecondaryButtonTextTypeface(android.graphics.Typeface secondaryButtonTextTypeface)
Parameters:
Parameter | Description |
---|---|
secondaryButtonTextTypeface | text typeface |
getSecondaryButtonTextAlignment
This method gets the text alignment for secondary button.
Syntax: public int getSecondaryButtonTextAlignment()
Returns: text alignment
setSecondaryButtonTextAlignment
This method sets the text alignment for secondary button.
Syntax: public void setSecondaryButtonTextAlignment(int secondaryButtonTextAlignment)
Parameters:
Parameter | Description |
---|---|
secondaryButtonTextAlignment | text alignment |
getSecondaryButtonMarginBottom
This method gets the margin bottom for secondary button.
Syntax: public int getSecondaryButtonMarginBottom()
Returns: margin bottom
getSecondaryButtonMarginLeft
This method gets the margin left for secondary button.
Syntax: public int getSecondaryButtonMarginLeft()
Returns: margin left
getSecondaryButtonMarginRight
This method gets the margin right for secondary button.
Syntax: public int getSecondaryButtonMarginRight()
Returns: margin right
getSecondaryButtonMarginTop
This method gets the margin top for secondary button.
Syntax: public int getSecondaryButtonMarginTop()
Returns: margin top
setSecondaryButtonMargin
This method sets the margin for secondary button.
Syntax: public void setSecondaryButtonMargin(int bottom, int left, int right, int top)
Parameters:
Parameter | Description |
---|---|
bottom | margin bottom |
left | margin left |
right | margin right |
top | margin top |
isSecondaryButtonTextAllCaps
This method gets the text all caps for secondary button.
Syntax: public boolean isSecondaryButtonTextAllCaps()
Returns: true if text is all caps otherwise false
setSecondaryButtonTextAllCaps
This method is used to enable the text all caps for secondary button.
Syntax: public void setSecondaryButtonTextAllCaps(boolean secondaryButtonTextAllCaps)
Parameters:
Parameter | Description |
---|---|
secondaryButtonTextAllCaps | text is all caps |
ICGenericTemplatePartViewFactory
Factory class that creates ICGenericTemplatePartViewHolder instances.
Constructor Detail
ICGenericTemplatePartViewFactory
Syntax: public ICGenericTemplatePartViewFactory()
Method Detail
createPartView
This method used to create the message part view holder for GenericTemplate type AttachmentPart , the created message part view holders are added to message part container View holder
Syntax: public ICGenericTemplatePartViewHolder createPartView(android.view.ViewGroup root)
Specified by: createPartView in class com.imimobile.connect.ui.views.partviews.ICMessagePartViewFactory
Parameters:
Parameter | Description |
---|---|
root | message part container view group |
Returns: returns generic template part view holder
getContentType
This method returns content type for message part view factory
Syntax: public java.lang.String getContentType()
Specified by: getContentType in class com.imimobile.connect.ui.views.partviews.ICMessagePartViewFactory
Returns: returns content type for message part view factory
getViewIdentifier
This method returns view identifier
Syntax: public java.lang.String getViewIdentifier(com.imimobile.connect.ui.interfaces.ICMessagePart part)
Specified by: getViewIdentifier in class com.imimobile.connect.ui.views.partviews.ICMessagePartViewFactory
Returns: returns view identifier
Parameters:
Parameter | Description |
---|---|
part | message part |
ICGenericTemplatePartViewHolder
This class implements the ICMessagePartViewHolder and will represent the GenericTemplate part of the message.
Constructor Detail
ICGenericTemplatePartViewHolder
Syntax: public ICGenericTemplatePartViewHolder(android.view.View partView)
This method used to create the ICGenericTemplatePartViewHolder class instance.
Parameters:
partView - generic template part view
• Method Detail
• registerListener
public static void registerListener(ICButtonClickListener listener)
This method registers an ICButtonClickListener that will be notified when ICButton click events occur.
Parameters:
listener - ICButtonClickListener instance
• unregisterListener
public static void unregisterListener(ICButtonClickListener listener)
This method unregisters a previously registered ICButtonClickListener instance. The instance will no longer receive ICButton click events occur.
Parameters:
listener - ICButtonClickListener instance
• bindMessagePart
public boolean bindMessagePart(com.imimobile.connect.ui.interfaces.ICMessagePart part, com.imimobile.connect.core.messaging.ICMessageData message)
This method binds the GenericTemplate message part to MessagePartViewHolder
Specified by:
bindMessagePart in class com.imimobile.connect.ui.views.partviews.ICMessagePartViewHolder
Parameters:
part - message part
message - message data
Returns:
returns true binding message part is successful with MessagePartViewHolder, false otherwise
• setMessageViewStyle
public void setMessageViewStyle(com.imimobile.connect.ui.ICMessageViewStyle style)
This method sets message view style to GenericTemplate message part view holder
Overrides:
setMessageViewStyle in class com.imimobile.connect.ui.views.partviews.ICMessagePartViewHolder
Parameters:
style - message view style
ICGenericTemplatePartViewStyle
This class provides style attributes that are utilized by ICGenericTemplatePartViewHolder for customization of generic template part view components.
• Constructor Detail
• ICGenericTemplatePartViewStyle
public ICGenericTemplatePartViewStyle()
• Method Detail
• getBackgroundResource
public int getBackgroundResource()
This method gets the background resource id for generic template view.
Returns:
background resource id
• setBackgroundResource
public void setBackgroundResource(int backgroundResource)
This method sets the background resource id for generic template view.
Parameters:
backgroundResource - background resource id
• getBackgroundColor
public int getBackgroundColor()
This method gets the background color for generic template view.
Returns:
background color
• setBackgroundColor
public void setBackgroundColor(int backgroundColor)
This method sets the background color for generic template view.
Parameters:
backgroundColor - background color
• getMarginBottom
public int getMarginBottom()
This method gets the margin bottom
Returns:
margin bottom
• getMarginLeft
public int getMarginLeft()
This method gets the margin left
Returns:
margin left
• getMarginRight
public int getMarginRight()
This method gets the margin right
Returns:
margin right
• getMarginTop
public int getMarginTop()
This method gets the margin top
Returns:
margin top
• setMargin
public void setMargin(int bottom, int left, int right, int top)
This method sets the margin
Parameters:
bottom - margin bottom
left - margin left
right - margin right
top - margin top
• getPaddingBottom
public int getPaddingBottom()
This method gets the padding bottom
Returns:
padding bottom
• getPaddingLeft
public int getPaddingLeft()
This method gets the padding left
Returns:
padding left
• getPaddingRight
public int getPaddingRight()
This method gets the padding right
Returns:
padding right
• getPaddingTop
public int getPaddingTop()
This method gets the padding top
Returns:
padding top
• setPadding
public void setPadding(int bottom, int left, int right, int top)
This method sets the padding
Parameters:
bottom - padding bottom
left - padding left
right - padding right
top - padding top
• getElementStyle
public ICGenericTemplateElementViewStyle getElementStyle()
This method gets the generic template element view style
Returns:
generic template element view style
• setElementStyle
public void setElementStyle(ICGenericTemplateElementViewStyle elementStyle)
This method sets the generic template element view style
Parameters:
elementStyle - generic template element view style
• getElementDetailsStyle
public ICGenericTemplateElementDetailsStyle getElementDetailsStyle()
This method gets the generic template element details style
Returns:
generic template element details style
• setElementDetailsStyle
public void setElementDetailsStyle(ICGenericTemplateElementDetailsStyle elementDetailsStyle)
This method sets the generic template element details style
Parameters:
elementDetailsStyle - generic template element details style
2.2.3 com.imimobile.connect.ui.views.quickreply
ICQuickReplyView
This class implements the ICConversationMessageViewHolder and will represent the quick reply view part of the message.
• Constructor Detail
• ICQuickReplyView
public ICQuickReplyView(android.content.Context context)
This method used to create the ICQuickReplyView class instance.
Parameters:
context - Context: This value cannot be null.
• ICQuickReplyView
• public ICQuickReplyView(android.content.Context context,
android.util.AttributeSet attrs)
This method used to create the ICQuickReplyView class instance.
Parameters:
context - Context: This value cannot be null.
attrs - AttributeSet: This value may be null.
• ICQuickReplyView
• public ICQuickReplyView(android.content.Context context,
• android.util.AttributeSet attrs,
int defStyleAttr)
This method used to create the ICQuickReplyView class instance.
Parameters:
context - Context: This value cannot be null.
attrs - AttributeSet: This value may be null.
defStyleAttr – int
• ICQuickReplyView
• public ICQuickReplyView(android.content.Context context,
• android.util.AttributeSet attrs,
• int defStyleAttr,
int defStyleRes)
This method used to create the ICQuickReplyView class instance.
Parameters:
context - Context: This value cannot be null.
attrs - AttributeSet: This value may be null.
defStyleAttr - int
defStyleRes – int
• Method Detail
• setQuickReplyClickListener
public void setQuickReplyClickListener(ICButtonClickListener listener)
This method sets ICButtonClickListener that will be notified when ICButton click events occur.
Parameters:
listener - ICButtonClickListener instance
• setMessageData
public boolean setMessageData(com.imimobile.connect.core.messaging.ICMessageData messageData)
This method sets message data to display the quick reply buttons
Parameters:
messageData - message data
Returns:
true if message content the quick reply buttons otherwise false
• setQuickReplyViewStyle
public void setQuickReplyViewStyle(ICQuickReplyViewStyle quickReplyViewStyle)
This method sets style for the quick reply view
Parameters:
quickReplyViewStyle - ICQuickReplyViewStyle instance
ICGenericTemplatePartViewStyle
This class provides style attributes that are utilized by ICQuickReplyView for customization of quick reply view components.
• Constructor Detail
• ICQuickReplyViewStyle
public ICQuickReplyViewStyle()
• Method Detail
• writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
Specified by:
writeToParcel in interface android.os.Parcelable
• describeContents
public int describeContents()
Specified by:
describeContents in interface android.os.Parcelable
• getBackgroundResource
public int getBackgroundResource()
This method gets the background resource Id
Returns:
Background resource Id
• setBackgroundResource
public void setBackgroundResource(int resId)
This method sets background resource id
Parameters:
resId - - background resource id
• getBackgroundColor
public int getBackgroundColor()
This method gets the background color.
Returns:
background color
• setBackgroundColor
public void setBackgroundColor(int backgroundColor)
This method sets background color
Parameters:
backgroundColor - - background color
• getMarginStart
public int getMarginStart()
This method gets the margin start.
Returns:
returns margin start value
• getMarginEnd
public int getMarginEnd()
This method gets the margin end.
Returns:
returns margin end value
• setMargin
public void setMargin(int start, int end)
This method sets start and end margin
Parameters:
start - - Start margin
end - - End margin
• getTextColor
@ColorInt public int getTextColor()
This method gets the text color.
Returns:
returns text color value in the form of 0xAARRGGBB
• setTextColor
public void setTextColor(@ColorInt int color)
This method sets text color
Parameters:
color - - color of text
• getTextSize
public float getTextSize()
This method gets the text Size.
Returns:
returns text size
• setTextSize
public void setTextSize(float size)
This method sets text size
Parameters:
size - - size of text
• getTextTypeface
public android.graphics.Typeface getTextTypeface()
This method gets the text typeface.
Returns:
returns text typeface. Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2)
• setTextTypeface
public void setTextTypeface(android.graphics.Typeface typeface)
This method sets text typeface
Parameters:
typeface - - typeface of text
• getTextGravity
public int getTextGravity()
This method gets the Gravity.
Returns:
Gravity for text
• setTextGravity
public void setTextGravity(int gravity)
This method sets gravity
Parameters:
gravity - - gravity
• getTextMarginLeft
public int getTextMarginLeft()
This method gets the margin Left.
Returns:
returns margin left value
• getTextMarginRight
public int getTextMarginRight()
This method gets the margin right.
Returns:
returns margin right value
• setTextMargin
public void setTextMargin(int left, int right)
This method sets Left and Right margin
Parameters:
left - - Left margin
right - - Right margin
• getImageGravity
public int getImageGravity()
This method gets the Gravity.
Returns:
Gravity for image
• setImageGravity
public void setImageGravity(int gravity)
This method sets gravity
Parameters:
gravity - - gravity
• getImageMaxWidth
public int getImageMaxWidth()
This method gets the image maxWidth.
Returns:
returns maxWidth value
• setImageMaxWidth
public void setImageMaxWidth(int maxWidth)
This method sets image maxWidth.
Parameters:
maxWidth - - maxWidth
• getImageMaxHeight
public int getImageMaxHeight()
This method gets the image maxHeight.
Returns:
returns maxHeight value
• setImageMaxHeight
public void setImageMaxHeight(int maxHeight)
This method sets image maxHeight.
Parameters:
maxHeight - - maxHeight
• getImageScaleType
public android.widget.ImageView.ScaleType getImageScaleType()
This method gets the image ScaleType.
Returns:
returns ScaleType value
• setImageScaleType
public void setImageScaleType(android.widget.ImageView.ScaleType scaleType)
This method sets image scaleType.
Parameters:
scaleType - - scaleType
• getImageMarginLeft
public int getImageMarginLeft()
This method gets the margin Left.
Returns:
returns margin left value
• getImageMarginRight
public int getImageMarginRight()
This method gets the margin right.
Returns:
returns margin right value
• setImageMargin
public void setImageMargin(int left, int right)
This method sets Left and Right margin
Parameters:
left - - Left margin
right - - Right margin
ICFormPartViewFactory
This class implements the ICMessagePartViewFactory and is responsible for creating the form part of the message.
ICFormPartViewHolder
This class implements the ICMediaPartViewHolder and will represent the form part of the message.
registerListener
Registers an ICFormActionListener that will be notified when ICFormPartViewHolder form action events occur.
Syntax: static void registerListener(final ICFormActionListener listener)
Parameters:
Parameter | Type | Description |
---|---|---|
listener | ICFormActionListener | ICFormActionListener class instance |
removeListener
Unregisters a previously registered ICFormActionListener instance. The instance will no longer receive form action events.
Syntax: static void removeListener(final ICFormActionListener listener)
Parameters:
Parameter | Type | Description |
---|---|---|
listener | ICFormActionListener | ICFormActionListener class instance |
ICFormViewStyle
This class provides style attributes that are utilized by ICConversationRecyclerView for customization of form view components.
getBackgroundResource
This method is used to get the Background resource Id for formPartView.
Syntax: int getBackgroundResource()
Returns: Background resource id
setBackgroundResource
This method sets formPartView background resource id.
Syntax: void setBackgroundResource(final int resId)
Parameters:
Parameter | Type | Description |
---|---|---|
resId | int | Background resource id |
getBackgroundColor
This method is used to get the background color for formPartView.
Syntax: int getBackgroundColor()
Returns: Background color
setBackgroundColor
This method sets background color for formPartView
Syntax: void setBackgroundColor(final int backgroundColor)
Parameters:
Parameter | Type | Description |
---|---|---|
backgroundColor | int | background color |
getTextColor
This method is used to get text color.
Syntax: int getTextColor()
Returns: Text color value
setTextColor
This method sets text color
Syntax: void setTextColor(@ColorInt final int color)
Parameters:
Parameter | Type | Description |
---|---|---|
color | int | color value of 0xAARRGGBB |
getTextSize
This method is used to get text size
Syntax: int getTextSize()
Returns: Text size value
setTextSize
This method sets text size
Syntax: void setTextSize(final float size)
Parameters:
Parameter | Type | Description |
---|---|---|
size | float | size of text |
getTextTypeface
This method is used to get text typeface
Syntax: Typeface getTextTypeface()
Returns: text typeface. Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2)
setTextTypeface
This method sets text typeface
Syntax: void setTextTypeface(final Typeface typeface)
Parameters:
Parameter | Type | Description |
---|---|---|
typeface | Typeface | typeface of text |
getGravity
This method is used to get the gravity for view
Syntax: int getGravity()
Returns: gravity for view
setGravity
This method sets gravity for view
Syntax: void setGravity(int gravity)
Parameters:
Parameter | Type | Description |
---|---|---|
gravity | int | gravity value for view |
getMarginLeft
This method is used to get the margin left
Syntax: int getMarginLeft()
Returns: margin left value
getMarginRight
This method is used to get the margin right
Syntax: int getMarginRight()
Returns: margin right value
setMargin
This method sets left and right margin
Syntax: void setMargin(int left, int right)
Parameter | Type | Description |
---|---|---|
left | int | left margin |
right | int | right margin |
getTitleTextColor
This method is used to get text color for the title.
Syntax: int getTitleTextColor()
Returns: text color for title
setTitleTextColor
This method sets text color for the title.
Syntax: void setTitleTextColor(@ColorInt final int color)
Parameters:
Parameter | Type | Description |
---|---|---|
color | int | color value of 0xAARRGGBB |
getTitleTextSize
This method is used to get text size for the title.
Syntax: float getTitleTextSize()
Returns: text size for title
setTitleTextSize
This method sets text size for the title.
Syntax: void setTitleTextSize(final float size)
Parameters:
Parameter | Type | Description |
---|---|---|
size | float | Text size for title |
getTitleTextTypeface
This method is used to get text typeface for the title.
Syntax: Typeface getTitleTextTypeface()
Returns: text typeface for title
setTitleTextSize
This method sets text typeface for the title.
Syntax: void setTitleTextTypeface(final Typeface typeface)
Parameters:
Parameter | Type | Description |
---|---|---|
typeface | Typeface | text typeface for title |
getTitleTextAlignment
This method is used to get text alignment for the title.
Syntax: int getTitleTextAlignment()
Returns: text alignment for title
setTitleTextAlignment
This method sets text alignment for the title.
Syntax: void setTitleTextAlignment(int textAlignment)
Parameters:
Parameter | Type | Description e |
---|---|---|
textAlignment | int | text alignment for title |
getTitleMarginBottom
This method is used to get the bottom margin for the title
Syntax: int getTitleMarginBottom()
Returns: Bottom margin value
getTitleMarginLeft
This method is used to get the left margin for the title
Syntax: int getTitleMarginLeft()
Returns: Left margin value
getTitleMarginRight
This method is used to get the right margin for the title
Syntax: int getTitleMarginRight()
Returns: Right margin value
getTitleMarginTop
This method is used to get the top margin for the title
Syntax: int getTitleMarginTop()
Returns: Top margin value
setTitleMargin
This method sets margin for the title
Syntax: void setTitleMargin(int bottom, int left, int right, int top)
Parameters:
Parameter | Type | Description |
---|---|---|
bottom | int | bottom margin |
left | int | left margin |
right | int | right margin |
top int | int | top margin |
getSubmitBackgroundResource
This method is used to get the background resource Id for submit.
Syntax: int getSubmitBackgroundResource()
Returns: Background resource id for submit
setSubmitBackgroundResource
This method sets the background resource id for submit.
Syntax: void setSubmitBackgroundResource(final int resId)
Parameters:
Parameter | Type | Description |
---|---|---|
resId | int | Background resource id |
getSubmitBackgroundResource
This method is used to get the background tint color for submit.
Syntax: int getSubmitBackgroundTintColor()
Returns: Background resource id for submit
setSubmitBackgroundResource
This method sets the background tint color for submit.
Syntax: void setSubmitBackgroundTintColor(@ColorInt final int color)
Parameters:
Parameter | Type | Description |
---|---|---|
color | int | Background tint color |
getSubmitTextColor
This method is used to get text color for the submit.
Syntax: int getSubmitTextColor()
Returns: text color for submit
setSubmitTextColor
This method sets text color for the submit.
Syntax: void setSubmitTextColor(@ColorInt final int color)
Parameters:
Parameter | Type | Description |
---|---|---|
color | int | color value of 0xAARRGGBB |
getSubmitTextSize
This method is used to get text size for the submit.
Syntax: float getSubmitTextSize()
Returns: text size for submit
setSubmitTextSize
This method sets text size for the submit.
Syntax: void setSubmitTextSize(final float size)
Parameters:
Parameter | Type | Description |
---|---|---|
size | float | Text size for submit |
getSubmitTextTypeface
This method is used to get text typeface for the submit.
Syntax: Typeface getSubmitTextTypeface()
Returns: text typeface for submit
setSubmitTextTypeface
This method sets text typeface for the submit.
Syntax: void setSubmitTextTypeface(final Typeface typeface)
Parameters:
Parameter | Type | Description |
---|---|---|
typeface | Typeface | text typeface for submit |
getSubmitTextAlignment
This method is used to get text alignment for the submit.
Syntax: int getSubmitTextAlignment()
Returns: text alignment for submit
setSubmitTextAlignment
This method sets text alignment for the submit.
Syntax: void setSubmitTextAlignment(int textAlignment)
Parameters:
Parameter | Type | Description |
---|---|---|
textAlignment | int | text alignment for submit |
getSubmitMarginBottom
This method is used to get the bottom margin for the submit
Syntax: int getSubmitMarginBottom()
Returns: Bottom margin value
getSubmitMarginLeft
This method is used to get the left margin for the submit
Syntax: int getSubmitMarginLeft()
Returns: Left margin value
getSubmitMarginRight
This method is used to get the right margin for the submit
Syntax: int getSubmitMarginRight()
Returns: Right margin value
getSubmitMarginTop
This method is used to get the top margin for the submit
Syntax: int getSubmitMarginTop()
Returns: Top margin value
setSubmitMargin
This method sets margin for the submit
Syntax: void setSubmitMargin(int bottom, int left, int right, int top)
Parameters:
Parameter | Type | Description |
---|---|---|
bottom | int | bottom margin |
left | int | left margin |
right | int | right margin |
top | int | top margin |
getLabelTextColor
This method is used to get text color for the label.
Syntax: int getLabelTextColor()
Returns: text color for label
setErrorTextColor
This method sets text color for the error.
Syntax: void setErrorTextColor(@ColorInt final int color)
Parameters:
Type | Description | |
---|---|---|
color | int | color value of 0xAARRGGBB |
getErrorTextSize
This method is used to get text size for the error.
Syntax: float getErrorTextSize()
Returns: text size for error
setErrorTextSize
This method sets text size for the error.
Syntax: void setErrorTextSize(final float size)
Parameters:
Parameter | Type | Description |
---|---|---|
size | float | Text size for error |
getErrorTextTypeface
This method is used to get text typeface for error
Syntax: Typeface getErrorTextTypeface()
Returns: text typeface. Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2)
setErrorTextTypeface
This method sets text typeface for error
Syntax: void setErrorTextTypeface(final Typeface typeface)
Parameters:
Parameter | Type | Description |
---|---|---|
typeface | Typeface | typeface of text |
getErrorGravity
This method is used to get the gravity for error
Syntax: int getGravity()
Returns: gravity for error
setErrorGravity
This method sets gravity for error
Syntax: void setErrorGravity(int gravity)
Parameters:
Parameter | Type | Description |
---|---|---|
gravity | int | gravity value for error |
getErrorMarginBottom
This method is used to get the bottom margin for the error
Syntax: int getErrorMarginBottom()
Returns: Bottom margin value
getErrorMarginLeft
This method is used to get the left margin for the error
Syntax: int getErrorMarginLeft()
Returns: Left margin value
getErrorMarginRight
This method is used to get the right margin for the error
Syntax: int getErrorMarginRight()
Returns: Right margin value
getErrorMarginTop
This method is used to get the top margin for the error
Syntax: int getErrorMarginTop()
Returns: Top margin value
setErrorMargin
This method sets margin for the error
Syntax: void setErrorMargin(int bottom, int left, int right, int top)
Parameters:
Parameter | Type | Description |
---|---|---|
bottom | int | bottom margin |
left | int | left margin |
right | int | right margin |
top | int | top margin |
ICFormFieldContainerViewHolder
This class contains all the formField views that represent the content of an ICFormField instance
bindFormFields
This method binds formFields to the respective formField part view holder.
Syntax: void bindFormFields(final List fields, final ICMessageData message)
Parameters:
Parameter | Type | Type |
---|---|---|
fields | List | List of ICFormField |
message | ICMessageData | Message data instance |
addFormFieldView
This method is used to add formFieldView from formFieldView Holder to formFieldContainer viewGroup
Syntax: void addFormFieldView(ICFormFieldViewHolder holder)
Parameters:
Parameter | Type | Description |
---|---|---|
holder | ICFormFieldViewHolder | ICFormFieldViewHolder instance |
composeFormFields
This method is used to compose the formFields with given user value
Syntax: boolean composeFormFields(final List fields)
Parameters:
Parameter | Type | Description |
---|---|---|
fields | List | List of ICFormField |
Returns: FormField view holder instance
setFormFieldValidationListener
This method is used to sets the OnValidationListener instance
Syntax: void setFormFieldValidationListener(ICFormFieldViewHolder.OnValidationListener listener)
Parameters:
Parameter | Type | Description |
---|---|---|
listener | ICFormFieldViewHolder.OnValidationListener | OnValidationListener instance |
setFormViewStyle
This method sets the form view style to formField view holder.
Syntax: void setFormViewStyle(@NonNull ICFormViewStyle style)
Parameters:
Parameter | Type | Description |
---|---|---|
style | ICFormViewStyle | formView style |
getRootViewGroup
This method is used to get root view group.
Syntax: ViewGroup getRootViewGroup()
Returns: Root view group
ICFormFieldViewHolder
This is an abstract class that represents a formField part.
setFormViewStyle
This method sets the form view style to formField view holder.
Syntax: void setFormViewStyle(@NonNull ICFormViewStyle style)
Parameters:
Parameter | Type | Description |
---|---|---|
style | ICFormViewStyle | formView style |
ICFormFieldViewHolder.OnValidationListener
Interface for validating the formField input values
onValidate
This method is used to validate the formField input values.
Syntax: boolean onValidate(ICFormFieldViewHolder holder, String value)
Parameters:
Parameter | Type | Description |
---|---|---|
holder | ICFormFieldViewHolder | ICFormFieldViewHolder instance |
value | String | The value to be validated |
Returns: True validation successful else false
ICFormFieldViewFactory
This abstract class represents all the methods needed to create the form field partviews displayed in a form view.
createPartView
This method is used to create the formField view holder.
Syntax: abstract ICFormFieldViewHolder createFieldView(ViewGroup root)
Parameters:
Parameter | Type | Description |
---|---|---|
root | ViewGroup | FormField container view group |
Returns: FormField view holder instance
ICFormActionListener
Interface for listening to form action events from the ICFormPartViewHolder class.
onFormSubmit
This method is invoked after successful validation and ready to publish new ICMessage instance with form input values.
Syntax: void onFormSubmit(ICMessage message)
Parameters:
Parameter | Type | Description |
---|---|---|
message | ICMessage | ICMessage instance with form input values |
onFormValidate
This method is invoked to validate the formField input values.
Syntax: boolean onFormValidate(ICFormFieldViewHolder holder, String value)
Parameters:
Parameter | Type | Description |
---|---|---|
holder | ICFormFieldViewHolder | ICFormFieldViewHolder instance |
value | String | The value to be validated |
ICFormDateFieldViewFactory
This class implements the ICFormFieldViewFactory and is responsible for creating part of the date field view.
ICFormDateFieldViewHolder
This class implements the ICFormFieldViewHolder and represents the date field of the form template message.
ICFormEditTextFieldViewFactory
This class implements the ICFormFieldViewFactory and is responsible for creating part of the edit (Text, Name, Email, Integer or Decimal) field view.
ICFormEditTextFieldViewHolder
This class implements the ICFormFieldViewHolder and represents the Text, Name, Email, Integer or Decimal type of fields of the form template message.
ICFormSpinnerFieldViewFactory
This class implements the ICFormFieldViewFactory and is responsible for creating part of the dropdown field view.
ICFormSpinnerFieldViewHolder
This class implements the ICFormFieldViewHolder and represents the dropdown field of the form template message.
ICURLPartViewFactory
getContentDescForPreview
Syntax : public String getContentDescForPreview()
This method is used to return content description for preview of attached URL
Returns: content description
setContentDescForPreview
Syntax : public void setContentDescForPreview(String contentDesc)
This method is used to set content description for preview of attached URL
Parameters : contentDesc - content description
ICURLPartViewHolder
getContentDescForPreview
Syntax : public String getContentDescForPreview()
This method is used to return content description for preview of attached URL
Returns: content description
setContentDescForPreview
Syntax : public void setContentDescForPreview(String contentDesc)
This method is used to set content description for preview of attached URL
Parameters: contentDesc - content description
ICMessagePartViewHolder
applyStyle
Syntax : protected abstract void applyStyle(ICMessageData messageData)
This method apply style to conversation message view holder
Parameters : messageData – ICMessageData instance
ICFormFieldViewFactory
This abstract class represents all the methods needed to create the form field partviews displayed in a form view.
getFieldType
Syntax : public abstract String getFieldType()
This method returns field type for form field view factory
Returns: returns content field for form field view factory
ICFormMultiSelectFieldViewFactory
This class implements the ICFormFieldViewFactory and is responsible for creating the ICFormMultiSelectFieldViewHolder instance.
ICFormMultiSelectFieldViewHolder
This class implements the ICFormFieldViewHolder and will represent the MultiSelect dropdown of the form field.
ICFormMultiSelectDialogStyle
This class that represents the MultiSelect dropdown form field view’s style properties.
getBackgroundResource
Syntax : public int getBackgroundResource()
This method gets the background resource for generic template element view.
Returns: background resource id
setBackgroundResource
Syntax : public void setBackgroundResource(int backgroundResource)
This method sets the background resource for generic template element view.
Parameters: backgroundResource - background resource id
getBackgroundColor
Syntax : public int getBackgroundColor()
This method gets the background color for generic template element view.
Returns:background color
setBackgroundColor
Syntax : public void setBackgroundColor(int backgroundColor)
This method sets the background color for generic template element view.
Parameters: backgroundColor - background color
getMarginBottom
Syntax : public int getMarginBottom()
This method gets the margin bottom for generic template element view.
Returns: margin bottom
getMarginLeft
Syntax : public int getMarginLeft()
This method gets the margin left for generic template element view.
Returns: margin left
getMarginRight
Syntax : public int getMarginRight()
This method gets the margin right for generic template element view.
Returns: margin right
getMarginTop
Syntax : public int getMarginTop()
This method gets the margin top for generic template element view.
Returns: margin top
setMargin
Syntax : public void setMargin(int bottom, int left, int right, int top)
This method sets the margin for generic template element view.
Parameters:
Parameter | Description |
---|---|
bottom | margin bottom |
left | margin left |
right | margin right |
top | margin top |
getPaddingBottom
Syntax : public int getPaddingBottom()
This method gets the padding bottom for generic template element view.
Returns:padding bottom
getPaddingLeft
Syntax : public int getPaddingLeft()
This method gets the padding left for generic template element view.
Returns: padding left
getPaddingRight
Syntax : public int getPaddingRight()
This method gets the padding right for generic template element view.
Returns: padding right
getPaddingTop
Syntax : public int getPaddingTop()
This method gets the padding top for generic template element view.
Returns: padding top
setPadding
Syntax : public void setPadding(int bottom, int left, int right, int top)
This method sets the padding for generic template element view.
Parameters:
Parameter | Description |
---|---|
bottom | padding bottom |
left | padding left |
right | padding right |
top | padding top |
getTitleTextColor
Syntax : public int getTitleTextColor()
This method gets the text color for title.
Returns: text color
setTitleTextColor
Syntax : public void setTitleTextColor(int titleTextColor)
This method sets the text color for title.
Parameters: titleTextColor - text color
getTitleTextSize
Syntax : public float getTitleTextSize()
This method gets the text size for title.
Returns: text size
setTitleTextSize
Syntax : public void setTitleTextSize(float titleTextSize)
This method sets the text size for title.
Parameters: titleTextSize - text size
getTitleTextTypeface
Syntax : public Typeface getTitleTextTypeface()
This method gets the text typeface for title.
Returns: text typeface
setTitleTextTypeface
Syntax : public void setTitleTextTypeface(Typeface titleTextTypeface)
This method sets the text typeface for title.
Parameters: titleTextTypeface - text typeface
getTitleTextAlignment
Syntax : public int getTitleTextAlignment()
This method gets the text alignment for title.
Returns: text alignment
setTitleTextAlignment
Syntax : public void setTitleTextAlignment(int titleTextAlignment)
This method sets the text alignment for title.
Parameters: titleTextAlignment - text alignment
getTitleMarginBottom
Syntax : public int getTitleMarginBottom()
This method gets the margin bottom for title.
Returns: margin bottom
getTitleMarginLeft
Syntax : public int getTitleMarginLeft()
This method gets the margin left for title.
Returns: margin left
getTitleMarginRight
Syntax : public int getTitleMarginRight()
This method gets the margin right for title.
Returns: margin right
getTitleMarginTop
Syntax : public int getTitleMarginTop()
This method gets the margin top for title.
Returns: margin top
setTitleMargin
Syntax : public void setTitleMargin(int bottom, int left, int right, int top)
This method sets the margin for title.
Parameters:
Parameter | Description |
---|---|
bottom | margin bottom |
left | margin left |
right | margin right |
top | margin top |
getTitleTextMaxLines
Syntax : public int getTitleTextMaxLines()
This method gets the text max lines for title.
Returns: text max lines
setTitleTextMaxLines
Syntax : public void setTitleTextMaxLines(int titleTextMaxLines)
This method sets the text max lines for title.
Parameters: titleTextMaxLines - text max lines
getPrimaryButtonHeight
Syntax : public int getPrimaryButtonHeight()
This method gets the height for primary button.
Returns: height
setPrimaryButtonHeight
Syntax : public void setPrimaryButtonHeight(int primaryButtonHeight)
This method sets the height for primary button.
Parameters: primaryButtonHeight - height
getPrimaryButtonBackgroundResource
Syntax : public int getPrimaryButtonBackgroundResource()
This method gets the background resource for primary button.
Returns: background resource
setPrimaryButtonBackgroundResource
Syntax : public void setPrimaryButtonBackgroundResource(int primaryButtonBackgroundResource)
This method sets the background resource for primary button.
Parameters: primaryButtonBackgroundResource - background resource
getPrimaryButtonTextColor
Syntax : public int getPrimaryButtonTextColor()
This method gets the text color for primary button.
Returns: text color
setPrimaryButtonTextSize
Syntax : public void setPrimaryButtonTextSize(float primaryButtonTextSize)
This method sets the text size for primary button.
Parameters: primaryButtonTextSize - text size
getPrimaryButtonTextTypeface
Syntax :public Typeface getPrimaryButtonTextTypeface()
This method gets the text typeface for primary button.
Returns: text typeface
setPrimaryButtonTextTypeface
Syntax : public void setPrimaryButtonTextTypeface(Typeface primaryButtonTextTypeface)
This method sets the text typeface for primary button.
Parameters: primaryButtonTextTypeface - text typeface
getPrimaryButtonTextAlignment
Syntax : public int getPrimaryButtonTextAlignment()
This method gets the text alignment for primary button.
Returns: text alignment
setPrimaryButtonTextAlignment
Syntax : public void setPrimaryButtonTextAlignment(int primaryButtonTextAlignment)
This method gets the text alignment for primary button.
Parameters: primaryButtonTextAlignment - text alignment
getPrimaryButtonMarginBottom
Syntax : public int getPrimaryButtonMarginBottom()
This method gets the margin bottom for primary button.
Returns: margin bottom
getPrimaryButtonMarginLeft
Syntax : public int getPrimaryButtonMarginLeft()
This method gets the margin left for primary button.
Returns: margin left
getPrimaryButtonMarginRight
Syntax : public int getPrimaryButtonMarginRight()
This method gets the margin right for primary button.
Returns: margin right
getPrimaryButtonMarginTop
Syntax : public int getPrimaryButtonMarginTop()
This method gets the margin top for primary button.
Returns: margin top
setPrimaryButtonMargin
Syntax : public void setPrimaryButtonMargin(int bottom, int left, int right, int top)
This method sets the margin for primary button.
Parameters:
Parameter | Description |
---|---|
bottom | margin bottom |
left | margin left |
right | margin right |
top | margin top |
isPrimaryButtonTextAllCaps
Syntax : public boolean isPrimaryButtonTextAllCaps()
This method gets the text all caps for primary button.
Returns: true if text is all caps otherwise false
setPrimaryButtonTextAllCaps
Syntax : public void setPrimaryButtonTextAllCaps(boolean primaryButtonTextAllCaps)
This method is used to enable the text all caps for primary button.
Parameters: primaryButtonTextAllCaps - text is all caps
getSecondaryButtonHeight
Syntax :public int getSecondaryButtonHeight()
This method gets the height for secondary button.
Returns: height
setSecondaryButtonHeight
Syntax : public void setSecondaryButtonHeight(int secondaryButtonHeight)
This method sets the height for secondary button.
Parameters: secondaryButtonHeight - height
getSecondaryButtonBackgroundResource
Syntax : public int getSecondaryButtonBackgroundResource()
This method gets the background resource for secondary button.
Returns: background resource
setSecondaryButtonBackgroundResource
Syntax : public void setSecondaryButtonBackgroundResource(int secondaryButtonBackgroundResource)
This method sets the background resource for secondary button.
Parameters: secondaryButtonBackgroundResource -
getSecondaryButtonTextColor
Syntax : public int getSecondaryButtonTextColor()
This method gets the text color for secondary button.
Returns: text color
setSecondaryButtonTextColor
Syntax : public void setSecondaryButtonTextColor(int secondaryButtonTextColor)
This method sets the text color for secondary button.
Parameters: secondaryButtonTextColor - text color
getSecondaryButtonTextSize
Syntax : public float getSecondaryButtonTextSize()
This method gets the text size for secondary button.
Returns: text size
setSecondaryButtonTextSize
Syntax : public void setSecondaryButtonTextSize(float secondaryButtonTextSize)
This method sets the text size for secondary button.
Parameters: secondaryButtonTextSize - text size
getSecondaryButtonTextTypeface
Syntax : public Typeface getSecondaryButtonTextTypeface()
This method gets the text typeface for secondary button.
Returns: text typeface
setSecondaryButtonTextTypeface
Syntax :public void setSecondaryButtonTextTypeface(Typeface secondaryButtonTextTypeface)
This method sets the text typeface for secondary button.
Parameters: secondaryButtonTextTypeface - text typeface
getSecondaryButtonTextAlignment
Syntax : public int getSecondaryButtonTextAlignment()
This method gets the text alignment for secondary button.
Returns: text alignment
setSecondaryButtonTextAlignment
Syntax : public void setSecondaryButtonTextAlignment(int secondaryButtonTextAlignment)
This method sets the text alignment for secondary button.
Parameters: secondaryButtonTextAlignment - text alignment
getSecondaryButtonMarginBottom
Syntax : public int getSecondaryButtonMarginBottom()
This method gets the margin bottom for secondary button.
Returns: margin bottom
getSecondaryButtonMarginLeft
Syntax : public int getSecondaryButtonMarginLeft()
This method gets the margin left for secondary button.
Returns: margin left
getSecondaryButtonMarginRight
Syntax : public int getSecondaryButtonMarginRight()
This method gets the margin right for secondary button.
Returns: margin right
getSecondaryButtonMarginTop
Syntax : public int getSecondaryButtonMarginTop()
This method gets the margin top for secondary button.
Returns: margin top
setSecondaryButtonMargin
Syntax : public void setSecondaryButtonMargin(int bottom, int left, int right, int top)
This method sets the margin for secondary button.
Parameters:
Parameter | Description |
---|---|
bottom | margin bottom |
left | margin left |
right | margin right |
top | margin top |
isSecondaryButtonTextAllCaps
Syntax : public boolean isSecondaryButtonTextAllCaps()
This method gets the text all caps for secondary button.
Returns: true if text is all caps otherwise false
setSecondaryButtonTextAllCaps
Syntax : public void setSecondaryButtonTextAllCaps(boolean secondaryButtonTextAllCaps)
This method is used to enable the text all caps for secondary button.
Parameters: secondaryButtonTextAllCaps - text is all caps
getItemTextColor
Syntax : public int getItemTextColor()
This method gets the text color for Item text view
Returns: Item text color
setItemTextColor
Syntax :public void setItemTextColor(int itemTextColor)
This method sets the text color for Item text view.
Parameters: itemTextColor - text color
getItemTextSize
Syntax : public float getItemTextSize()
This method gets the text size for Item text view
Returns: Item text size
setItemTextSize
Syntax : public void setItemTextSize(float itemTextSize)
This method sets the text size for Item text view.
Parameters: itemTextSize - text size
getItemTextTypeface
Syntax : public Typeface getItemTextTypeface()
This method gets the text Typeface for Item text view
Returns: Item text typeface
setItemTextTypeface
Syntax :public void setItemTextTypeface(Typeface itemTextTypeface)
This method sets the text typeface for Item text view.
Parameters: itemTextSize - text size
getItemTextAlignment
Syntax : public int getItemTextAlignment()
This method is used to get text alignment for the item text view.
Returns: text alignment for item text view
setItemTextAlignment
Syntax : public void setItemTextAlignment(int itemTextAlignment)
This method sets text alignment for the item text view.
Parameters: itemTextAlignment - text alignment for item text view
getItemTextMarginBottom
Syntax : public int getItemTextMarginBottom()
This method gets the margin bottom for item text view.
Returns: margin bottom
getItemTextMarginLeft
Syntax : public int getItemTextMarginLeft()
This method gets the margin left for item text view.
Returns: margin left
getItemTextMarginRight
Syntax : public int getItemTextMarginRight()
This method gets the margin right for item text view.
Returns: margin right
getItemTextMarginTop
Syntax : public int getItemTextMarginTop()
This method gets the margin top for item text view.
Returns: margin top
setItemTextMargin
Syntax : public void setItemTextMargin(int bottom, int left, int right, int top)
This method sets the margin for item text view.
Parameters:
Parameter | Description |
---|---|
bottom | margin bottom |
left | margin left |
right | margin right |
top | margin top |
getItemCheckMarkResource
Syntax : public int getItemCheckMarkResource()
setItemCheckMarkResource
Syntax : public void setItemCheckMarkResource(int itemCheckMarkResource)
getItemCheckMarkMarginBottom
Syntax : public int getItemCheckMarkMarginBottom()
This method gets the margin bottom for itemCheckMark view.
Returns: margin bottom
getItemCheckMarkMarginLeft
Syntax : public int getItemCheckMarkMarginLeft()
This method gets the margin left for itemCheckMark view.
Returns: margin left
getItemCheckMarkMarginRight
Syntax : public int getItemCheckMarkMarginRight()
This method gets the margin right for itemCheckMark view.
Returns: margin right
getItemCheckMarkMarginTop
Syntax : public int getItemCheckMarkMarginTop()
This method gets the margin top for itemCheckMark view.
Returns: margin top
setItemCheckMarkMargin
Syntax : public void setItemCheckMarkMargin(int bottom, int left, int right, int top)
This method sets the margin for itemCheckMark view.
Parameters:
Parameter | Description |
---|---|
bottom | margin bottom |
left | margin left |
right | margin right |
top | margin top |
ICLocationPartViewFactory
getContentDescForPreview
Syntax : public String getContentDescForPreview()
This method is used to return content description for preview of attached location
Returns: content description
setContentDescForPreview
Syntax : public void setContentDescForPreview(String contentDesc)
This method is used to set content description for preview of attached location
Parameters: contentDesc - content description
ICLocationPartViewHolder
getContentDescForPreview
Syntax : public String getContentDescForPreview()
This method is used to return content description for preview of attached location
Returns: content description
setContentDescForPreview
Syntax : public void setContentDescForPreview(String contentDesc)
This method is used to set content description for preview of attached location
Parameters: contentDesc - content description
ICAudioPartViewFactory
getContentDescForPlay
Syntax : public String getContentDescForPlay()
This method is used to return content description for play audio button
Returns: content description
setContentDescForPlay
Syntax : public void setContentDescForPlay(String contentDesc)
This method is used to set content description for play audio button
Parameters: contentDesc - content description
getContentDescForPause
Syntax : public String getContentDescForPause()
This method is used to return content description for pause audio button
Returns: content description
setContentDescForPause
Syntax : public void setContentDescForPause(String contentDesc)
This method is used to set content description for pause audio button
Parameters: contentDesc - content description
ICAudioPartViewHolder
getContentDescForPlay
Syntax : public String getContentDescForPlay()
This method is used to return content description for play audio button
Returns: content description
setContentDescForPlay
Syntax : public void setContentDescForPlay(String contentDesc)
This method is used to set content description for play audio button
Parameters: contentDesc - content description
getContentDescForPause
Syntax : public String getContentDescForPause()
This method is used to return content description for pause audio button
Returns: content description
setContentDescForPause
Syntax : public void setContentDescForPause(String contentDesc)
This method is used to set content description for pause audio button
Parameters: contentDesc - content description
applyStyle
Syntax : protected void applyStyle(ICMessageData messageData)
This method is used to apply style to Audio part view holder
Parameters: messageData - message data
ICFilePartViewFactory
getContentDescForPreview
Syntax : public String getContentDescForPreview()
This method is used to return content description for preview of attached file
Returns: content description
setContentDescForPreview
Syntax : public void setContentDescForPreview(String contentDesc)
This method is used to set content description for preview of attached file
Parameters: contentDesc - content description
ICFilePartViewHolder
getContentDescForPreview
Syntax : public String getContentDescForPreview()
This method is used to return content description for preview of attached file
Returns: content description
setContentDescForPreview
Syntax : public void setContentDescForPreview(String contentDesc)
This method is used to set content description for preview of attached file
Parameters: contentDesc - content description
ICImagePartViewFactory
getContentDescForPreview
Syntax : public String getContentDescForPreview()
This method is used to return content description for preview of attached image
Returns: content description
setContentDescForPreview
Syntax : public void setContentDescForPreview(String contentDesc)
This method is used to set content description for preview of attached image
Parameters: contentDesc - content description
getContentDescForImagePreview
Syntax : public String getContentDescForImagePreview()
This method is used to return content description for image preview
Returns: content description
setContentDescForImagePreview
Syntax : public void setContentDescForImagePreview(String contentDesc)
This method is used to set content description for image preview
Parameters: contentDesc - content description
getContentDescForCloseImagePreviewButton
Syntax : public String getContentDescForCloseImagePreviewButton()
This method is used to return content description for close image preview button
Returns: content description
setContentDescForCloseImagePreviewButton
Syntax : public void setContentDescForCloseImagePreviewButton(String contentDesc)
This method is used to set content description for close image preview button
Parameters: contentDesc - content description
ICImagePartViewHolder
getContentDescForPreview
Syntax : public String getContentDescForPreview()
This method is used to return content description for preview of attached image
Returns: content description
setContentDescForPreview
Syntax : public void setContentDescForPreview(String contentDesc)
This method is used to set content description for preview of attached image
Parameters: contentDesc - content description
getContentDescForImagePreview
Syntax : public String getContentDescForImagePreview()
This method is used to return content description for image preview
Returns: content description
setContentDescForImagePreview
Syntax : public void setContentDescForImagePreview(String contentDesc)
This method is used to set content description for image preview
Parameters: contentDesc - content description
getContentDescForCloseImagePreviewButton
Syntax : public String getContentDescForCloseImagePreviewButton()
This method is used to return content description for close image preview button
Returns: content description
setContentDescForCloseImagePreviewButton
Syntax : public void setContentDescForCloseImagePreviewButton(String contentDesc)
This method is used to set content description for close image preview button
Parameters: contentDesc - content description
ICVideoPartViewFactory
getContentDescForPlay
Syntax : public String getContentDescForPlay()
This method is used to return content description for play video button
Returns: content description
setContentDescForPlay
Syntax : public void setContentDescForPlay(String contentDesc)
This method is used to set content description for play video button
Parameters: contentDesc - content description
ICVideoPartViewHolder
getContentDescForPlay
Syntax : public String getContentDescForPlay()
This method is used to return content description for play video button
Returns: content description
setContentDescForPlay
Syntax : public void setContentDescForPlay(String contentDesc)
This method is used to set content description for play video button
Parameters: contentDesc - content description
ICMediaPartViewFactory
getContentDescForDownloadButton
Syntax : public String getContentDescForDownloadButton()
This method is used to return content description for download attachment button
Returns: content description
setContentDescForDownloadButton
Syntax : public void setContentDescForDownloadButton(String contentDesc)
This method is used to set content description for download attachment button
Parameters: contentDesc - content description
getContentDescForDownloadCancelButton
Syntax : public String getContentDescForDownloadCancelButton()
This method is used to return content description for download attachment cancel button
Returns: content description
setContentDescForDownloadCancelButton
Syntax : public void setContentDescForDownloadCancelButton(String contentDesc)
This method is used to set content description for download attachment cancel button
Parameters: contentDesc - content description
ICGenericTemplateElementDetailsDialog
getContentDescForPreview
Syntax : public String getContentDescForPre
this is used to return content description for preview of generic template image
Returns:content description
setContentDescForPreview
Syntax : public void setContentDescForPreview(String contentDesc)
This method is used to set content description for preview of generic template image
Parameters: contentDesc - content description
getContentDescForImagePreview
Syntax : public String getContentDescForImagePreview()
This method is used to return content description for image preview
Returns: content description
setContentDescForImagePreview
Syntax : public void setContentDescForImagePreview(String contentDesc)
This method is used to set content description for image preview
Parameters: contentDesc - content description
getContentDescForCloseImagePreviewButton
Syntax : public String getContentDescForCloseImagePreviewButton()
This method is used to return content description for close image preview button
Returns: content description
setContentDescForCloseImagePreviewButton
Syntax : public void setContentDescForCloseImagePreviewButton(String contentDesc)
This method is used to set content description for close image preview button
Parameters: contentDesc - content description
getContentDescForDetailsCloseButton
Syntax : public String getContentDescForDetailsCloseButton()
This method is used to return content description for details close button
Returns: content description
setContentDescForDetailsCloseButton
Syntax : public void setContentDescForDetailsCloseButton(String contentDesc)
This method is used to set content description for details close button
Parameters: contentDesc - content description
getContentDescForNavigationProgressIndicator
Syntax : public String getContentDescForNavigationProgressIndicator()
This method is used to return content description for navigation progress indicator
Returns: content description
setContentDescForNavigationProgressIndicator
Syntax : public void setContentDescForNavigationProgressIndicator(String contentDesc)
This method is used to set content description for navigation progress indicator
Parameters: contentDesc - content description
ICGenericTemplateElementViewAdapter
getContentDescForPreview
Syntax : public String getContentDescForPreview()
This method is used to return content description for preview of generic template image
Returns: content description
setContentDescForPreview
Syntax : public void setContentDescForPreview(String contentDesc)
This method is used to set content description for preview of generic template image
Parameters: contentDesc - content description
getContentDescForMoreButton
Syntax : public String getContentDescForMoreButton()
This method is used to return content description for more button
Returns: content description
setContentDescForMoreButton
Syntax : public void setContentDescForMoreButton(String contentDesc)
This method is used to set content description for more button
Parameters: contentDesc - content description
ICGenericTemplatePartViewFactory
getContentDescForPreview
Syntax : public String getContentDescForPreview()
This method is used to return content description for preview of generic template image
Returns: content description
setContentDescForPreview
Syntax : public void setContentDescForPreview(String contentDesc)
This method is used to set content description for preview of generic template image
Parameters: contentDesc - content description
getContentDescForImagePreview
Syntax : public String getContentDescForImagePreview()
This method is used to return content description for image preview
Returns: content description
setContentDescForImagePreview
Syntax : public void setContentDescForImagePreview(String contentDesc)
This method is used to set content description for image preview
Parameters: contentDesc - content description
getContentDescForCloseImagePreviewButton
Syntax : public String getContentDescForCloseImagePreviewButton()
This method is used to return content description for close image preview button
Returns: content description
setContentDescForCloseImagePreviewButton
Syntax : public void setContentDescForCloseImagePreviewButton(String contentDesc)
This method is used to set content description for close image preview button
Parameters: contentDesc - content description
getContentDescForDetailsCloseButton
Syntax : public String getContentDescForDetailsCloseButton()
This method is used to return content description for details close button
Returns: content description
setContentDescForDetailsCloseButton
Syntax : public void setContentDescForDetailsCloseButton(String contentDesc)
This method is used to set content description for details close button
Parameters: contentDesc - content description
getContentDescForNavigationProgressIndicator
Syntax : public String getContentDescForNavigationProgressIndicator()
This method is used to return content description for navigation progress indicator
Returns: content description
setContentDescForNavigationProgressIndicator
Syntax : public void setContentDescForNavigationProgressIndicator(String contentDesc)
This method is used to set content description for navigation progress indicator
Parameters: contentDesc - content description
getContentDescForMoreButton
Syntax : public String getContentDescForMoreButton()
This method is used to return content description for more button
Returns: content description
setContentDescForMoreButton
Syntax : public void setContentDescForMoreButton(String contentDesc)
This method is used to set content description for more button
Parameters: contentDesc - content description
setStyle
Syntax : public void setStyle(ICGenericTemplatePartViewStyle style)
This method sets style for the generic template part view factory
Parameters: style - generic template part view style
ICGenericTemplatePartViewHolder
getContentDescForPreview
Syntax : public String getContentDescForPreview()
This method is used to return content description for preview of generic template image
Returns: content description
setContentDescForPreview
Syntax : public void setContentDescForPreview(String contentDesc)
This method is used to set content description for preview of generic template image
Parameters: contentDesc - content description
getContentDescForImagePreview
Syntax : public String getContentDescForImagePreview()
This method is used to return content description for image preview
Returns: content description
setContentDescForImagePreview
Syntax : public void setContentDescForImagePreview(String contentDesc)
This method is used to set content description for image preview
Parameters: contentDesc - content description
getContentDescForCloseImagePreviewButton
Syntax : public String getContentDescForCloseImagePreviewButton()
This method is used to return content description for close image preview button
Returns: content description
setContentDescForCloseImagePreviewButton
Syntax :public void setContentDescForCloseImagePreviewButton(String contentDesc)
This method is used to set content description for close image preview button
Parameters: contentDesc - content description
getContentDescForDetailsCloseButton
Syntax : public String getContentDescForDetailsCloseButton()
This method is used to return content description for details close button
Returns: content description
setContentDescForDetailsCloseButton
Syntax : public void setContentDescForDetailsCloseButton(String contentDesc)
This method is used to set content description for details close button
Parameters: contentDesc - content description
getContentDescForNavigationProgressIndicator
Syntax : public String getContentDescForNavigationProgressIndicator()
This method is used to return content description for navigation progress indicator
Returns: content description
setContentDescForNavigationProgressIndicator
Syntax : public void setContentDescForNavigationProgressIndicator(String contentDesc)
This method is used to set content description for navigation progress indicator
Parameters: contentDesc - content description
getContentDescForMoreButton
Syntax : public String getContentDescForMoreButton()
This method is used to return content description for more button
Returns: content description
setContentDescForMoreButton
Syntax : public void setContentDescForMoreButton(String contentDesc)
This method is used to set content description for more button
Parameters: contentDesc - content description
applyStyle
Syntax : protected void applyStyle(ICMessageData messageData)
This method is used to apply style to generic template part view holder
Parameters: messageData - message data
Updated 11 months ago