SwiftprotocolStickerKit

protocol StickerKit.DataSourceStatePersistence

Members 6

  1. associatedtypeassociatedtype PersistenceState
  2. funcmethod descriptor for extractPersistenceState() -> A.PersistenceState?
  3. funcmethod descriptor for persistenceConfigurationKey() -> StickerKit.CacheConfigurationKey
  4. funcmethod descriptor for restoreFromPersistedState(A.PersistenceState) -> ()
  5. varvar persistenceKey: String { get }
  6. varvar shouldPersistState: Bool { get }
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
    }
}