Protocols
The following protocols are available globally.
-
Base protocol for all
See moreAssetPersistableandEntryPersistable.Declaration
Swift
public protocol ContentSysPersistable : NSObject -
Your
See moreNSManagedObjectsubclass should conform to thisSyncSpacePersistableto enable continuing a sync from a sync token on subsequent launches of your application rather than re-fetching all data during an initialSync. See Contentful’s Content Delivery API docs for more information.Declaration
Swift
public protocol SyncSpacePersistable : AnyObject -
Conform to
See moreAssetPersistableprotocol to enable mapping of your Contentful media Assets to yourNSManagedObjectsubclass.Declaration
Swift
public protocol AssetPersistable : AssetProtocol, ContentSysPersistable -
Conform to
See moreEntryPersistableprotocol to enable mapping of your Contentful content type to
yourNSManagedObjectsubclass.Declaration
Swift
public protocol EntryPersistable : ContentSysPersistable -
Protocol for persistence stores used by
See moreSynchronizationManagerDeclaration
Swift
public protocol PersistenceStore -
Abstracts file I/O so you can inject a fake in tests.
See moreDeclaration
Swift
public protocol FileManaging -
A hook for “seed my store from a bundled file” logic.
See moreDeclaration
Swift
public protocol PreseedStrategy
View on GitHub
Protocols Reference