ICAttachment
This class exposes data relating to attachments that are received through In-app or Push. In addition, it is used to attach media and location to outgoing In-app messages.
getContentType
This method is used to get the content type such as image/video/location.
Syntax: String getContentType()
Return Value: Returns the content type such as image or video or location.
##setContentType
This method is used to set the content type such as image/video/location.
Syntax: void setContentType(contentType)
Parameter | Type | Description |
---|---|---|
contentType | String | Specifies the content type. |
Updated almost 3 years ago