Flushable

public protocol Flushable

A type that can flush its in-memory state to a backing store.

Conforming types perform a deferred or scheduled write when flush(inInstance:) is called. The exact timing and behaviour is implementation-defined; use ForceFlushable when an immediate, synchronous flush is required.

  • Persists the current in-memory value to the backing store.

    Declaration

    Swift

    func flush(inInstance sdkInstance: isolated MoEngageSDKInstance)

    Parameters

    sdkInstance

    The isolated SDK instance providing the path and configuration context needed to perform the write.