Enumerations
The following enumerations are available globally.
-
Undocumented
See moreDeclaration
Swift
public enum GzipError : Swift.Error -
This defines the various levels of logging that a message may be tagged with. This allows hiding and showing different logging levels at run time depending on the environment
See moreDeclaration
Swift
public enum MixpanelLogLevel : String -
Strategy for resolving feature flag variants relative to the on-disk persistence layer and the network.
networkOnly: Never read or write persisted variants. Variant lookups always wait for the network call. Default; matches behavior prior to variant persistence. If a persisted blob exists from a previous session that used a persisting policy, it’s wiped on init.persistenceUntilNetworkSuccess(persistenceTtl:): Serve persisted variants immediately when available, refresh from the network in the background. Persisted entries older thanpersistenceTtlare ignored on read but NOT deleted (the next successful fetch overwrites them).networkFirst(persistenceTtl:): Prefer fresh values from the network, but fall back to persisted variants when the network call fails. Same TTL semantics aspersistenceUntilNetworkSuccess.
TTL handling — non-positive
persistenceTtlon a persisting policy is a misconfiguration. At SDK init the requested policy is run througheffective(_:), which collapses any persisting policy withpersistenceTtl <= 0to.networkOnly(with a warning logged). Persistence-with-no-useful-TTL would write to disk on every fetch but never serve anything from disk, so the SDK substitutes the meaningful interpretation. The factories themselves don’t sanitize — they preserve exactly what the developer asked for so callers can introspect.Convenience zero-argument forms
See morepersistenceUntilNetworkSuccess()/networkFirst()usedefaultTTL(24 hours) — equivalent to passingpersistenceTtl: VariantLookupPolicy.defaultTTL.Declaration
Swift
public enum VariantLookupPolicy
View on GitHub
Install in Dash
Enumerations Reference