We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8c0a4a commit 64f61d9Copy full SHA for 64f61d9
firestore/android/FirestoreSnippetsCpp/app/src/main/cpp/snippets.cpp
@@ -612,7 +612,7 @@ void ReadDataListen(firebase::firestore::Firestore* db) {
612
// [START listen_document]
613
DocumentReference doc_ref = db->Collection("cities").Document("SF");
614
doc_ref.AddSnapshotListener(
615
- [](const DocumentSnapshot& snapshot, Error error) {
+ [](const DocumentSnapshot& snapshot, Error error, const std::string& errorMsg) {
616
if (error == Error::kErrorOk) {
617
if (snapshot.exists()) {
618
std::cout << "Current data: " << snapshot << '\n';
0 commit comments