devsite/tools/jazzy/templates

FirebaseFirestore Framework Reference

ServerTimestampBehavior

enum ServerTimestampBehavior : Int, @unchecked Sendable

Controls the return value for server timestamps that have not yet been set to their final value.

  • Return NSNull for FieldValue.serverTimestamp() fields that have not yet been set to their final value.

    Declaration

    Swift

    case none = 0
  • Return a local estimates for FieldValue.serverTimestamp() fields that have not yet been set to their final value. This estimate will likely differ from the final value and may cause these pending values to change once the server result becomes available.

    Declaration

    Swift

    case estimate = 1
  • Return the previous value for FieldValue.serverTimestamp() fields that have not yet been set to their final value.

    Declaration

    Swift

    case previous = 2