MMMLoadableGroupMode

Objective-C

enum MMMLoadableGroupMode : NSInteger {}

Swift

enum MMMLoadableGroupMode : Int, @unchecked Sendable

Defines how the composite state of the loadable group depends on the states of its children.

  • 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

    MMMLoadableGroupModeAll

    Swift

    case all = 0
  • The loadable state of the group in this mode is:

    • ‘synced successfully’, when at least one of the loadables in the group is synced successfully,
    • ‘syncing’, when at least one of the loadables in the group is syncing.
    • ‘failed to sync’, when all of the loadables in the group have failed to sync;
    • ‘contentsAvailable’ is true, if there is at least one object in the group with ‘contentsAvailable’

    Declaration

    Objective-C

    MMMLoadableGroupModeAny

    Swift

    case any = 1
  • To map the deprecated “never” failure policy.

    Declaration

    Objective-C

    MMMLoadableGroupModeDeprecated

    Swift

    case __deprecated = 2