LibraryEvent class

Mobile Messaging plugin events.

Constructors

LibraryEvent.new({required String eventName, dynamic payload})
Default class constructor.
LibraryEvent.fromJson(Map<String, dynamic> json)
Getting library event name and payload from received json.
factory

Properties

eventName String
Event's name.
final
hashCode int
The hash code for this object.
no setterinherited
payload → dynamic
Event's payload.
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

Constants

actionTapped → const String
Occurs when user taps on action inside notification or enters text as part of the notification response.
chatAvailabilityUpdated → const String
Occurs when the connection has been established successfully and chat can be presented
chatConfigurationSynced → const String
Occurs when in-app chat configuration is synced.
chatLivechatRegistrationIdUpdated → const String
Occurs when livechat registration id is updated.
chatViewStateChanged → const String
Occurs when in-app chat view is changed.
depersonalized → const String
Occurs when request for depersonalization is successfully sent to the server.
installationUpdated → const String
Occurs when save request to the server is successfully sent.
messageReceived → const String
Occurs when new message arrives, see separate section for all available message fields
notificationTapped → const String
Occurs when notification is tapped.
personalized → const String
Occurs when request for personalization is successfully sent to the server.
registrationUpdated → const String
Occurs when the registration is updated on backend server. Returns internalId - string for the registered user.
tokenReceived → const String
Occurs when an APNs device token is received. Contains device token - a hex-encoded string received from APNS. Returns device token as hex-encoded string.
unreadMessageCounterUpdated → const String
Occurs when in-app chat counter is updated.
userUpdated → const String
Occurs when save request to the server is successfully sent.