AppwinInAppMessage class

An in-app message the server has queued for this device.

Constructors

AppwinInAppMessage({required String id, required String campaignId, required String deliveryId, required String channel, required String format, required AppwinInAppContent content})
Builds a message. The SDK decodes them for you; this is here for tests and for a host app rendering its own UI.
const
AppwinInAppMessage.fromMap(Map map)
Decodes what the native side sends over the method channel.
factory

Properties

campaignId → String
The campaign that produced it, shared by every recipient.
final
channel → String
Delivery channel, in_app for everything reaching this class.
final
content → AppwinInAppContent
Title, body, image and buttons.
final
deliveryId → String
This delivery, to this device. It is what AppwinNotifications.track reports against, so opens and clicks land on the right send.
final
format → String
How the studio chose to present it: modal, banner, fullscreen or image_only. A string rather than an enum: the dashboard can ship a new format before the SDK knows about it, and an unknown one must not crash the host app.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Message id, unique to this queued copy.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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.
inherited