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:

ParameterTypeDescription
titleStringThe 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:

ParameterTypeDescription
subTitleStringThe 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:

ParameterTypeDescription
imageURLsString[]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:

ParameterTypeDescription
buttonsICButton[]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:

ParameterTypeDescription
jsonObjectJSONObjectA valid JSONObject instance containing template element data.

Return Value: Returns A new ICGenericTemplateElement or null if jsonObject is null.