AsyncEvent
enum AsyncEvent : Hashable, Sendable
Asynchronous lifecycle events that may suspend and must be awaited by the SDK.
Use AsyncEvent for operations that must complete before the SDK proceeds,
such as flushing data before logout or checking unregister eligibility.
Events are delivered via Item.process(event:sdkInstance:) async, which runs on
the MoEngageSDKInstance actor’s executor and is awaited before the SDK continues.
-
The SDK is about to perform a logout; flush or persist data before returning.
Declaration
Swift
case willLogout -
The SDK is about to unregister.
Declaration
Swift
case willUnregister -
An async app lifecycle event was received.
Declaration
Swift
case didRecieveFromAppLifecycle(_: AppLifecycleEvent)Parameters
eventThe wrapped lifecycle notification and its type.
-
Wraps a background-entry app lifecycle notification.
See moreDeclaration
Swift
struct AppLifecycleEvent : Hashable, @unchecked Sendable