onSnapshot method

Stream<RecordSnapshot<K, V>> onSnapshot(
  1. Database database
)

Get a stream of a record snapshot from the database.

It allows listening to a single instance of a record.

Implementation

Stream<RecordSnapshot<K, V>> onSnapshot(v2.Database database);