public static class LocalNotification.MessagingStyle.Message

  1. Object
  2. LocalNotification.MessagingStyle.Message
A single message within a messaging style notification.

Constructors

public Message(String text, long timestamp, String senderName)Creates a message.

Methods

public String getText()Returns the message text.
public long getTimestamp()Returns the message timestamp.
public String getSenderName()Returns the sender display name.

Inherited methods

Constructor details

Message

public Message(String text, long timestamp, String senderName)
Creates a message.

Parameters

text String
the message text
timestamp long
the timestamp in milliseconds since the epoch
senderName String
the sender display name, or null for the device user

Method details

getText

public String getText()
Returns the message text.

Returns

the text

getTimestamp

public long getTimestamp()
Returns the message timestamp.

Returns

the timestamp in milliseconds since the epoch

getSenderName

public String getSenderName()
Returns the sender display name.

Returns

the sender name, or null for the device user