FirebaseFirestore Framework Reference

FIRVectorValue


@interface FIRVectorValue : NSObject

Represents a vector type in Firestore documents.

  • Returns a copy of the raw number array that represents the vector.

    Declaration

    Objective-C

    @property (readonly) NS_REFINED_FOR_SWIFT NSArray<NSNumber *> *array;
  • Creates a VectorValue constructed with a copy of the given array of NSNumbers.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithArray:(nonnull NSArray<NSNumber *> *)array;

    Parameters

    array

    An array of NSNumbers that represents a vector.