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.
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.
This method is used to set the content type such as image/video/location.
Syntax: void setContentType(contentType)
Specifies the content type.
Updated over 1 year ago