RichContentMessage

public class RichContentMessage

ImageTextMessage Class

Represents an image-text message. This type of message is stored and counted in the unread message count.

Constructors

Link copied to clipboard
public void RichContentMessage()
Constructor.
public void RichContentMessage(String title, String content, String imageUrl)
Constructor.
public void RichContentMessage(String title, String content, String imageUrl, String url)
Constructor.
public void RichContentMessage(Array<byte> data)
Constructor.

Properties

Link copied to clipboard
public String content
Link copied to clipboard
public final static Creator<RichContentMessage> CREATOR
The read interface is designed to construct an instance of a class that implements Parcelable from a Parcel.
Link copied to clipboard
public String imgUrl
Link copied to clipboard
public String title
Link copied to clipboard
public String url

Functions

Link copied to clipboard
public int describeContents()
Describes the type of special objects included in the Parcelable object arrangement information.
Link copied to clipboard
public Array<byte> encode()
Serializes the local message object into message data.
Link copied to clipboard
public String getContent()
Retrieves the message body.
Link copied to clipboard
public String getImgUrl()
Fetches the image URL of the message.
Link copied to clipboard
public List<String> getSearchableWord()
Link copied to clipboard
public String getTitle()
Retrieves the message title.
Link copied to clipboard
public String getUrl()
Retrieves the message URL.
Link copied to clipboard
public static RichContentMessage obtain(String title, String content, String imageUrl)
public static RichContentMessage obtain(String title, String content, String imageUrl, String url)
Generates a RichContentMessage object.
Link copied to clipboard
public void setContent(String content)
Sets the message body.
Link copied to clipboard
public void setImgUrl(String url)
Set the image URL for the message.
Link copied to clipboard
public void setTitle(String title)
Sets the message title.
Link copied to clipboard
public void setUrl(String url)
Sets the message URL.
Link copied to clipboard
public void writeToParcel(Parcel dest, int flags)
Writes the class data into the provided Parcel.