InboxMessage class
A message stored in the inbox.
InboxMessage always has a special topic, has sentTimestamp - milliseconds from epoch in UTC, and seen status. To mark message as seen, use special markMessagesSeen.
Constructors
-
InboxMessage.new({required String messageId, required bool seen, required String topic, String? title, String? body, String? sound, bool? vibrate, String? icon, bool? silent, String? category, Map<
String, dynamic> ? customPayload, String? internalData, String? contentUrl, Map<String, dynamic> ? originalPayload, String? browserUrl, String? deeplink, String? webViewUrl, String? inAppOpenTitle, String? inAppDismissTitle, num? sentTimestamp}) - Default constructor with all params.
-
InboxMessage.fromJson(Map<
String, dynamic> json) - Parsing InboxMessage from json.
Properties
- body → String?
-
Optional message body.
final
- browserUrl → String?
-
Optional url to open in browser.
final
- category → String?
-
Android only: category of the message.
final
- contentUrl → String?
-
Link to the message content.
final
-
customPayload
→ Map<
String, dynamic> ? -
Optional custom payload of the message.
final
- deeplink → String?
-
Optional deeplink.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- icon → String?
-
Android only: icon for the message.
final
- inAppDismissTitle → String?
-
Optional in-app message: title for cancel/dismiss action.
final
- inAppOpenTitle → String?
-
Optional in-app message: title for open action.
final
- internalData → String?
-
Internal data.
final
- messageId → String
-
Id of the InboxMessage.
final
-
originalPayload
→ Map<
String, dynamic> ? -
iOS only: original APNS payload.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seen → bool
-
Boolean value if message is marked as seen.
final
- sentTimestamp → num?
-
Optional message sent timestamp.
final
- silent → bool?
-
Optional: silent message flag.
final
- sound → String?
-
Optional message sound.
final
- title → String?
-
Optional message title.
final
- topic → String
-
Topic of the message.
final
- vibrate → bool?
-
Android only: vibrate for the message.
final
- webViewUrl → String?
-
Optional url to open in webView.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override