MMMLoadable
Objective-C
@protocol MMMLoadable <MMMPureLoadable>
Swift
protocol MMMLoadableProtocol : MMMPureLoadableProtocol
A part of the ‘loadable’ interface allowing to trigger a refresh (sync).
-
Asks the loadable to sync now (e.g. download the associated contents).
- If syncing is already in progress, then the call is ignored.
Declaration
Objective-C
- (void)sync;Swift
func sync() -
YES, if the loadable needs to be synced because it was never synced, or a cache timeout has expired,
- or properties were changed and need to be uploaded, etc.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL needsSync;Swift
var needsSync: Bool { get } -
Calls
syncifneedsSyncis YES or if the state is different from ‘did sync successfully’.Declaration
Objective-C
- (void)syncIfNeeded;Swift
func syncIfNeeded()
View on GitHub
MMMLoadable Protocol Reference