From 2dd7324bd543027e2925e7e653ca83a7bad3c31b Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Wed, 13 Dec 2017 17:28:15 +0800 Subject: Adding missing SnapshotOptions method --- Firestore/Source/Public/FIRDocumentSnapshot.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Firestore/Source/Public') diff --git a/Firestore/Source/Public/FIRDocumentSnapshot.h b/Firestore/Source/Public/FIRDocumentSnapshot.h index a628834..6af9d2d 100644 --- a/Firestore/Source/Public/FIRDocumentSnapshot.h +++ b/Firestore/Source/Public/FIRDocumentSnapshot.h @@ -180,10 +180,22 @@ NS_SWIFT_NAME(QueryDocumentSnapshot) /** * Retrieves all fields in the document as an `NSDictionary`. * + * Server-provided timestamps that have not yet been set to their final value will be returned as + * `NSNull`. You can use `dataWithOptions()` to configure this behavior. + * * @return An `NSDictionary` containing all fields in the document. */ - (NSDictionary *)data; +/** + * Retrieves all fields in the document as a `Dictionary`. + * + * @param options `SnapshotOptions` to configure how data is returned from the snapshot (e.g. the + * desired behavior for server timestamps that have not yet been set to their final value). + * @return A `Dictionary` containing all fields in the document. + */ +- (NSDictionary *)dataWithOptions:(FIRSnapshotOptions *)options; + @end NS_ASSUME_NONNULL_END -- cgit v1.2.3