Firebase.Firestore.SnapshotMetadata

Metadata about a snapshot, describing the state of the snapshot.

Summary

Constructors and Destructors

SnapshotMetadata(bool hasPendingWrites, bool isFromCache)
Creates a new instance of the class.

Properties

HasPendingWrites
bool
true if the snapshot contains the result of local writes (e.g.
IsFromCache
bool
true if the snapshot was created from cached data rather than guaranteed up-to-date server data.

Public functions

Equals(object obj)
override bool
Equals(SnapshotMetadata other)
bool
Compares this snapshot metadata with another for equality.
GetHashCode()
override int

Properties

HasPendingWrites

boolHasPendingWrites

true if the snapshot contains the result of local writes (e.g.

SetAsync orUpdateAsync calls) that have not yet been committed to the backend. If your listener has opted into metadata updates (viaMetadataChanges.Include) you will receive another snapshot withHasPendingWrites equal tofalse once the writes have been committed to the backend.

IsFromCache

boolIsFromCache

true if the snapshot was created from cached data rather than guaranteed up-to-date server data.

If your listener has opted into metadata updates (viaMetadataChanges.Include) you will receive another snapshot withIsFromCache equal tofalse once the client has received up-to-date data from the backend.

Public functions

Equals

overrideboolEquals(objectobj)

Equals

boolEquals(SnapshotMetadataother)

Compares this snapshot metadata with another for equality.

Details
Parameters
other
The snapshot metadata to compare this one with.
Returns
true if this snapshot metadata is equal toother ;false otherwise.

GetHashCode

overrideintGetHashCode()

SnapshotMetadata

SnapshotMetadata(boolhasPendingWrites,boolisFromCache)

Creates a new instance of the class.

Details
Parameters
hasPendingWrites
Indicates whether this snapshot has pending writes.
isFromCache
Indicates whether this snapshot is from the cache.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2021-09-08 UTC.