FIRUpdateOptions

Undocumented

  • Returns an empty FIRUpdateOptions object. An empty FIRUpdateOptions object means that updates will fail if the document is missing.

    Declaration

    Swift

    init()

    Objective-C

    - (nonnull instancetype)init;

    Return Value

    The created FIRUpdateOptions object

  • Creates and returns an empty FIRUpdateOptions object. An empty FIRUpdateOptions object means that updates will fail if the document is missing.

    Declaration

    Objective-C

    + (nonnull instancetype)options;

    Return Value

    The created FIRUpdateOptions object

  • Sets the createIfMissing option which controls the behavoir of update if the document is missing. The default is NO

    Declaration

    Swift

    func createIfMissing(_ createIfMissing: Bool) -> Self

    Objective-C

    - (nonnull instancetype)createIfMissing:(BOOL)createIfMissing;

    Parameters

    createIfMissing

    whether to create a new document if the document is missing or fail

    Return Value

    The receiver is returned for optional method chaining.

  • Whether to create the object if it’s missing or fail

    Declaration

    Swift

    var createIfMissing: Bool { get }

    Objective-C

    @property (readonly, assign, nonatomic) BOOL createIfMissing;