MMMLoadableGroupFailurePolicy
Objective-C
enum MMMLoadableGroupFailurePolicy : NSInteger {}
Swift
enum MMMLoadableGroupFailurePolicy : Int, @unchecked Sendable
Defines how sync failures in child loadables of a loadable group affect the sync state of the whole group.
-
The loadable state of the group in this mode is:
- ‘synced successfully’, when all loadables in the group are synced successfully,
- ‘failed to sync’, when there is at least one loadable in the group that has failed to sync;
- ‘syncing’, when any of the loadables in the group is syncing and none has failed yet.
The contents of the group is considered available, if it is available in all objects of the group.
Declaration
Objective-C
MMMLoadableGroupFailurePolicyStrict
Swift
case strict = 0
-
This mode is deprecated in favor of
MMMLoadableGroupFailurePolicyAny
.The loadable state of the group in this mode is:
- ‘syncing’, when at least one of the loadables in the group is still syncing;
- ‘synced successfully’ otherwise.
- ‘contentsAvailable’ is
YES
when it isYES
for all the objects in the group.
Just like in the “strict” mode, the contents of the group is considered available, if it is available in all objects of the group. (This is something that was making the mode confusing in addition to breaking the contract that the contents is available for ‘synced successfully’ objects.)
Declaration
Objective-C
MMMLoadableGroupFailurePolicyNever
Swift
case never = 1