QueryListen

public class: QueryListen
extends Object
java.lang.Object
   ↳ com.google.firebase.firestore.QueryListen

Class Overview

A QueryListen is used to attach event handlers to a query that you are listening to.

Summary

Public Methods
QueryListen setErrorListener(EventListener<FirebaseException> listener)
Sets a listener for errors.
QueryListen setListenStateListener(EventListener<Firestore.ListenState> listener)
Sets listener for ListenState events.
QueryListen setSnapshotDiffListener(EventListener<SnapshotDiff> listener)
Sets a listener for snapshot diff events.
QueryListen setSnapshotListener(EventListener<DocumentSet> listener)
Sets a listener for snapshot events.
void stop()
void unsetErrorListener()
Unsets a listener for errors.
void unsetListenStateListener()
Unsets a listener for ListenState events.
void unsetSnapshotDiffListener()
Unsets a listener for snapshot diff events.
void unsetSnapshotListener()
Unset a listener for snapshot events.
Inherited Methods
From class java.lang.Object

Public Methods

public QueryListen setErrorListener (EventListener<FirebaseException> listener)

Sets a listener for errors.

Parameters
listener EventListener: the listener to set
Returns
QueryListen

public QueryListen setListenStateListener (EventListener<Firestore.ListenState> listener)

Sets listener for ListenState events.

Parameters
listener EventListener: the listener to set.
Returns
QueryListen

public QueryListen setSnapshotDiffListener (EventListener<SnapshotDiff> listener)

Sets a listener for snapshot diff events.

Parameters
listener EventListener: the listener to set
Returns
QueryListen

public QueryListen setSnapshotListener (EventListener<DocumentSet> listener)

Sets a listener for snapshot events.

Parameters
listener EventListener: the listener to set
Returns
QueryListen

public void stop ()

public void unsetErrorListener ()

Unsets a listener for errors.

public void unsetListenStateListener ()

Unsets a listener for ListenState events.

public void unsetSnapshotDiffListener ()

Unsets a listener for snapshot diff events.

public void unsetSnapshotListener ()

Unset a listener for snapshot events.

Send feedback about...

Need help? Visit our support page.