ICGenericTemplateElement (Discontinued)
Note
Please note that we have announced end of sale for Cordova SDK. It is no longer offered as a standard Webex Connect capability.
ICGenericTemplateElement
This class exposes the data related to generic template element.
getTitle
This method is used to get the title of the generic template element .
Syntax: String getTitle ()
Return Value: Returns the title of the generic template element .
setTitle
This method is used to set the title of the generic template element.
Syntax: void setTitle (String title)
Parameter:
Parameter | Type | Description |
---|---|---|
title | String | The title of the generic template element |
getSubTitle
This method is used to get the sub title of the generic template element .
Syntax: String getSubTitle ()
Return Value: Returns the sub title of the generic template element .
setSubTitle
This method is used to set the sub title of the generic template element.
Syntax: void setSubTitle (String subTitle)
Parameter:
Parameter | Type | Description |
---|---|---|
subTitle | String | The sub title of the generic template element. |
getImageURLs
This method is used to get the image URLs of the generic template element .
Syntax: String[] getImageURLs ()
Return Value: Returns the Array of Image URLs of the generic template element .
setImageURLs
This method is used to set the image URLs of the generic template element.
Syntax: void setImageURLs (String[] imageURLs)
Parameter:
Parameter | Type | Description |
---|---|---|
imageURLs | String[] | The array of image urls. |
getButtons
This method is used to get the buttons of the generic template element .
Syntax: ICButton[] getButtons ()
Return Value: Returns the Array of ICButton of the generic template element .
setButtons
This method is used to set the buttons of the generic template element.
Syntax: void setButtons (ICButton[] buttons)
Parameter:
Parameter | Type | Description |
---|---|---|
buttons | ICButton[] | The array of buttons. |
toJSON
This method returns the JSONObject containing the Generic template element data.
Syntax: JSONObject toJSON ()
Return Value: Returns JSONObject representation of the Generic template element.
fromJSON
Instantiates a new ICGenericTemplateElement instance from the supplied JSONObject.
Syntax: ICGenericTemplateElement fromJSON (JSONObject jsonObject)
Parameter:
Parameter | Type | Description |
---|---|---|
jsonObject | JSONObject | A valid JSONObject instance containing template element data. |
Return Value: Returns A new ICGenericTemplateElement or null if jsonObject is null.
Updated 11 months ago