SyncSubscriptionState

@frozen
public enum SyncSubscriptionState : Equatable

An enum representing different states for the Subscription Set.

  • The subscription is complete and the server has sent all the data that matched the subscription queries at the time the subscription set was updated. The server is now in a steady-state synchronization mode where it will stream update as they come.

    Declaration

    Swift

    case complete
  • The subscription encountered an error and synchronization is paused for this Realm. You can still use the current subscription set to write a subscription.

    Declaration

    Swift

    case error(Error)
  • The subscription is persisted locally but not yet processed by the server, which means the server hasn’t yet returned all the data that matched the updated subscription queries.

    Declaration

    Swift

    case pending
  • The subscription set has been superseded by an updated one, this typically means that someone is trying to write a subscription on a different instance of the subscription set. You should not use a superseded subscription set and instead obtain a new instance of the subscription set to write a subscription.

    Declaration

    Swift

    case superseded
  • Declaration

    Swift

    public static func == (lhs: SyncSubscriptionState, rhs: SyncSubscriptionState) -> Bool