onSnapshot
Attaches a listener for DocumentSnapshot events. You may either pass individual onNext and
onError callbacks or pass a single observer object with next and error callbacks.
NOTE: Although an onCompletion callback can be provided, it will never be called because the
snapshot stream is never-ending.
Attaches a listener for DocumentSnapshot events. You may either pass individual onNext and
onError callbacks or pass a single observer object with next and error callbacks.
NOTE: Although an onCompletion callback can be provided, it will never be called because the
snapshot stream is never-ending.
§Parameters
- A reference to the document to listen to.
- A single object containing
nextanderrorcallbacks.
Attaches a listener for DocumentSnapshot events. You may either pass individual onNext and
onError callbacks or pass a single observer object with next and error callbacks.
NOTE: Although an onCompletion callback can be provided, it will never be called because the
snapshot stream is never-ending.
§Parameters
- A reference to the document to listen to.
- Options controlling the listen behavior.
- A single object containing
nextanderrorcallbacks.
Attaches a listener for DocumentSnapshot events. You may either pass individual onNext and
onError callbacks or pass a single observer object with next and error callbacks.
NOTE: Although an onCompletion callback can be provided, it will never be called because the
snapshot stream is never-ending.
§Parameters
- A reference to the document to listen to.
- A callback to be called every time a new
DocumentSnapshotis available.
- A callback to be called if the listen fails or is cancelled. No further callbacks will occur.
Attaches a listener for DocumentSnapshot events. You may either pass individual onNext and
onError callbacks or pass a single observer object with next and error callbacks.
NOTE: Although an onCompletion callback can be provided, it will never be called because the
snapshot stream is never-ending.
§Parameters
- A reference to the document to listen to.
- Options controlling the listen behavior.
- A callback to be called every time a new
DocumentSnapshotis available.
- A callback to be called if the listen fails or is cancelled. No further callbacks will occur.
Attaches a listener for QuerySnapshot events. You may either pass individual onNext and
onError callbacks or pass a single observer object with next and error callbacks. The
listener can be cancelled by calling the function that is returned when onSnapshot is called.
NOTE: Although an onCompletion callback can be provided, it will never be called because the
snapshot stream is never-ending.
§Parameters
- A single object containing
nextanderrorcallbacks.
Attaches a listener for QuerySnapshot events. You may either pass individual onNext and
onError callbacks or pass a single observer object with next and error callbacks. The
listener can be cancelled by calling the function that is returned when onSnapshot is called.
NOTE: Although an onCompletion callback can be provided, it will never be called because the
snapshot stream is never-ending.
§Parameters
- Options controlling the listen behavior.
- A single object containing
nextanderrorcallbacks.
Attaches a listener for QuerySnapshot events. You may either pass individual onNext and
onError callbacks or pass a single observer object with next and error callbacks. The
listener can be cancelled by calling the function that is returned when onSnapshot is called.
NOTE: Although an onCompletion callback can be provided, it will never be called because the
snapshot stream is never-ending.
§Parameters
- A callback to be called every time a new
QuerySnapshotis available.
- A callback to be called if the listen fails or is cancelled. No further callbacks will occur.
Attaches a listener for QuerySnapshot events. You may either pass individual onNext and
onError callbacks or pass a single observer object with next and error callbacks. The
listener can be cancelled by calling the function that is returned when onSnapshot is called.
NOTE: Although an onCompletion callback can be provided, it will never be called because the
snapshot stream is never-ending.
§Parameters
- Options controlling the listen behavior.
- A callback to be called every time a new
QuerySnapshotis available.
- A callback to be called if the listen fails or is cancelled. No further callbacks will occur.