MoEngageConfig
-
A collection of typed storage locations used by the SDK configuration manager.
Each property is a
MoEngageStorage/ReadOnlyLocation,MoEngageStorage/WriteOnlyLocation, or composed variant that reads or writes a specific piece of SDK configuration. Locations span multiple backends —InMemoryStorage,FileStorage,UserDefaultStorage,KeychainStorage,MirroredStorage, andMigratingStorage— and the correct backend is selected automatically when the property is accessed through a boundMoEngageStorage/State.Bind this spec to a
MoEngageSDKInstanceviaMoEngageStorage/Stateto call each location without threading the instance argument through manually:
See morevar state = MoEngageStorage.State<MoEngageConfig.Specification>() let groupName = try state.keychainGroupName() try state.isTestEnvironment(true)Declaration
Swift
struct Specification : MoEngageStorage.Specification -
Declaration
Swift
struct InMemory : Hashable, Sendable -
Declaration
Swift
enum Constants -
Declaration
Swift
public extension MoEngageConfig.Partner