Notification Payload
open class NotificationPayload
Content copied to clipboard
Helper accessor for notification data payload bundle as received from Twilio Notifications. Use in FirebaseMessagingService.onMessageReceived
implementation to retrieve Twilio-generated payload fields safely.
Do not access the fields in the bundle directly - they could be modified without notice, always use this helper to access them.
Constructors
NotificationPayload
Link copied to clipboard
Create notification payload from the received map.
Types
Functions
get Conversation Sid
Link copied to clipboard
Get notification conversation SID.
get Conversation Title
Link copied to clipboard
Get notification conversation title.
get Media Content Type
Link copied to clipboard
Get media content type.
get Media Count
Link copied to clipboard
Get number of media attachments.
get Media Filename
Link copied to clipboard
Get media filename.
get Media Sid
Link copied to clipboard
Get media SID.
get Media Size
Link copied to clipboard
Get media size.
get Message Index
Link copied to clipboard
Get message index.
get Message Sid
Link copied to clipboard
Get message SID.
get Type
Link copied to clipboard
Get notification type.
Properties
INVALID_MESSAGE_INDEX
Link copied to clipboard
Value returned by getMessageIndex if notification contains no message index.