Enumerations

The following enumerations are available globally.

  • An enumeration of document change types.

    Declaration

    Swift

    enum DocumentChangeType : Int
  • Controls the return value for server timestamps that have not yet been set to their final value.

    Declaration

    Swift

    enum ServerTimestampBehavior : Int
  • Error codes used by Cloud Firestore.

    Declaration

    Swift

    enum FirestoreErrorCode : Int
  • An enum that configures the behavior of DocumentReference.getDocument() and Query.getDocuments(). By providing a source enum the getDocument[s] methods can be configured to fetch results only from the server, only from the local cache, or attempt to fetch results from the server and fall back to the cache (which is the default).

    Declaration

    Swift

    enum FirestoreSource : UInt