FirebaseFirestore Framework Reference

FIRBSONObjectId


@interface FIRBSONObjectId : NSObject <NSCopying>

Represents a BSON ObjectId type in Firestore documents.

  • The 24-character hex string representation of the ObjectId.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull value;
  • Creates a BSONObjectId constructed with the given value.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithValue:(nonnull NSString *)value;

    Parameters

    value

    The 24-character hex string representation of the ObjectId.

  • Returns true if the given object is equal to this, and false otherwise.

    Declaration

    Objective-C

    - (BOOL)isEqual:(nullable id)object;