SharedEvent

enum SharedEvent

Events that aren’t tied to an SDK instance.

Unlike Event / AsyncEvent, these are delivered without an isolated MoEngageSDKInstance — e.g. inside an app extension, before (or without) any instance being resolved. A module that needs an instance resolves it itself (for example through MoEngageAction).

The caller looks up the module that owns the event and delivers it synchronously, on the caller’s thread, via Item.process(event: SharedEvent) -> Bool — e.g. the notification service extension resolves MoEngageRichNotificationModule by name.

Note

Not Sendable/Hashable: events carry completion closures and never cross an actor boundary.

SharedEvent.ExtensionEvent