Package io.rong.message
Class InformationNotificationMessage
-
- All Implemented Interfaces:
public class InformationNotificationMessageNotification Message Class
The Notification Message Class. This type of message will be stored but does not count towards unread messages.
-
-
Constructor Summary
Constructors Constructor Description InformationNotificationMessage(String message)Constructor. InformationNotificationMessage(Array<byte> data)Constructor. InformationNotificationMessage(Parcel in)Constructor.
-
Method Summary
Modifier and Type Method Description StringgetMessage()Retrieves the content of the gray bar notification message. voidsetMessage(String message)Sets the content of the gray bar notification message. static InformationNotificationMessageobtain(String message)Generates an InformationNotificationMessage object. Array<byte>encode()Serializes the local message object into message data. voidwriteToParcel(Parcel dest, int flags)Writes the class data into the provided Parcel. intdescribeContents()Describes the type of special objects included in the Parcelable object's arrangement information. -
-
Constructor Detail
-
InformationNotificationMessage
InformationNotificationMessage(String message)
Constructor.- Parameters:
message- Specifies the content of the gray bar notification message.
-
InformationNotificationMessage
InformationNotificationMessage(Array<byte> data)
Constructor.- Parameters:
data- Byte array containing the JSON string.
-
InformationNotificationMessage
InformationNotificationMessage(Parcel in)
Constructor.- Parameters:
in- The Parcel object passed during initialization.
-
-
Method Detail
-
getMessage
String getMessage()
Retrieves the content of the gray bar notification message.
- Returns:
The content of the gray bar notification message.
-
setMessage
void setMessage(String message)
Sets the content of the gray bar notification message.
- Parameters:
message- The content of the gray bar notification message.
-
obtain
static InformationNotificationMessage obtain(String message)
Generates an InformationNotificationMessage object.
- Parameters:
message- The content of the gray bar notification message- Returns:
The message object
-
encode
Array<byte> encode()
Serializes the local message object into message data.
- Returns:
The message data.
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
Writes the class data into the provided Parcel.
- Parameters:
dest- The Parcel into which the object is written.flags- Additional flags about how the object should be written, possibly 0 or PARCELABLE_WRITE_RETURN_VALUE.
-
describeContents
int describeContents()
Describes the type of special objects included in the Parcelable object's arrangement information.
- Returns:
A flag indicating the arrangement of the Parcelable object's special object type collection.
-
-
-
-