SwiftprotocolStickerKit
DataSourceStatePersistence
protocol StickerKit.DataSourceStatePersistence
Members 6
- associatedtype
associatedtype PersistenceState - func
method descriptor for extractPersistenceState() -> A.PersistenceState? - func
method descriptor for persistenceConfigurationKey() -> StickerKit.CacheConfigurationKey - func
method descriptor for restoreFromPersistedState(A.PersistenceState) -> () - var
var persistenceKey: String { get } - var
var shouldPersistState: Bool { get }
Header
protocol DataSourceStatePersistence: AnyObject where Self.PersistenceState: Swift.Decodable, Self.PersistenceState: Swift.Encodable { associatedtype PersistenceState var persistenceKey: Swift.String { get } var shouldPersistState: Swift.Bool { get } func extractPersistenceState() -> Self.PersistenceState? func restoreFromPersistedState(_: Self.PersistenceState) func persistenceConfigurationKey() -> StickerKit.CacheConfigurationKey } extension StickerKit.DataSourceStatePersistence { var persistenceKey: Swift.String { get } var shouldPersistState: Swift.Bool { get } }