IntegrationHandler
struct IntegrationHandler : Sendable
Resolves the MoEngageSDKInstance associated with a partner integration and
runs work on it.
When a workspaceId is provided the handler dispatches directly to that instance.
When it is nil (fallback flow), the handler scans all registered instances for the
one whose partnerIntegrationType matches type, enables it for the partner, and
invokes the integrator + success callback for it.
-
Declaration
Swift
public init(type: MoEngageConfig.PartnerIntegration) -
Declaration
Swift
public func process<T: Integrator>( integrator: T, forWorkspaceId workspaceId: String?, success: @escaping @Sendable (isolated MoEngageSDKInstance) -> Void, failure: @MoEngageGlobalActor @escaping () -> Void = {} ) -
Declaration
Swift
public protocol Integrator : Sendable