AGCAppMessaging class

Properties

hashCode int
The hash code for this object.
no setterinherited
onCustomEvent Stream<AppMessage?>
Listener for custom events.
final
onMessageClick Stream<AppMessage>
Listener for message tap events.
final
onMessageDismiss Stream<AppMessage>
Listener for message closing events.
final
onMessageDisplay Stream<AppMessage>
listener for message display events.
final
onMessageError Stream<AppMessage>
Listener for message error events.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

handleCustomViewMessageEvent(AGCAppMessagingEventType eventType, [AGCAppMessagingDismissType? dismissType]) Future<void>
Processes custom events while using a custom layout.
isDisplayEnable() Future<bool>
Checks whether the App Messaging SDK is allowed to display in-app messages.
isFetchMessageEnable() Future<bool>
Checks whether the App Messaging SDK is allowed to synchronize in-app message data from the AppGallery Connect server.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeCustomView() Future<void>
Deletes a custom in-app message layout. Then the default layout will be used.
setDisplayEnable(bool enable) Future<void>
Sets whether to allow the App Messaging SDK to display in-app messages.
setDisplayLocation(AGCAppMessagingDisplayLocation location) Future<void>
Sets the display position of a pop-up or image message.
setFetchMessageEnable(bool enable) Future<void>
Sets whether to allow the App Messaging SDK to synchronize in-app message data from the AppGallery Connect server.
setForceFetch() Future<void>
Sets the forcible in-app message data obtaining flag. When the flag is enabled, you can obtain latest in-app message data from the AppGallery Connect server in real time.
toString() String
A string representation of this object.
inherited
trigger(String eventId) Future<void>
Triggers a custom event.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getInstance() AGCAppMessaging