NotificationCompat.MessagingStyle.Message

public final class NotificationCompat.MessagingStyle.Message


Summary

Public constructors

Message(
    @Nullable CharSequence text,
    long timestamp,
    @Nullable Person person
)

Creates a new Message with the given text, timestamp, and sender.

Message(
    @Nullable CharSequence text,
    long timestamp,
    @Nullable CharSequence sender
)

This method is deprecated.

Use the alternative constructor instead.

Public methods

@Nullable String

Get the MIME type of the data pointed to by the URI.

@Nullable Uri

Get the the Uri pointing to the content of the message.

@NonNull Bundle

Get the extras Bundle for this message.

@Nullable Person

Returns the Person sender of this message.

@Nullable CharSequence

This method is deprecated.

Use getPerson

@Nullable CharSequence

Get the text to be used for this message, or the fallback text if a type and content Uri have been set

long

Get the time at which this message arrived in ms since Unix epoch.

@NonNull NotificationCompat.MessagingStyle.Message
setData(@Nullable String dataMimeType, @Nullable Uri dataUri)

Sets a binary blob of data and an associated MIME type for a message.

Public constructors

Message

public Message(
    @Nullable CharSequence text,
    long timestamp,
    @Nullable Person person
)

Creates a new Message with the given text, timestamp, and sender.

Parameters