FIRSnapshotOptions


@interface FIRSnapshotOptions : NSObject

Options that configure how data is retrieved from a DocumentSnapshot (e.g. the desired behavior for server timestamps that have not yet been set to their final value).

  • Declaration

    Objective-C

    - (nonnull instancetype)init;
  • If set, controls the return value for FieldValue.serverTimestamp() fields that have not yet been set to their final value.

    If omitted, NSNull will be returned by default.

    Declaration

    Swift

    class func serverTimestampBehavior(_ serverTimestampBehavior: ServerTimestampBehavior) -> Self

    Objective-C

    + (nonnull instancetype)serverTimestampBehavior:
        (FIRServerTimestampBehavior)serverTimestampBehavior;

    Return Value

    The created FIRSnapshotOptions object.