SnapshotListenOptions

class SnapshotListenOptions


An options object that configures the behavior of addSnapshotListener() calls. Instances of this class control settings such as whether metadata-only changes trigger events, the preferred data source (server or cache), and the executor for listener callbacks.

Summary

Nested types

Builder for constructing SnapshotListenOptions instances.

Public functions

Boolean
equals(o: Any!)
Int
String!

Public properties

Activity!

The activity to scope the listener to.

Executor!

The executor to use to call the listener.

MetadataChanges!

Indicates whether metadata-only changes should trigger snapshot events.

ListenSource!

Specifies the data source for the listener.

Public functions

equals

fun equals(o: Any!): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String!

Public properties

activity

val activityActivity!

The activity to scope the listener to.

executor

val executorExecutor!

The executor to use to call the listener.

metadataChanges

val metadataChangesMetadataChanges!

Indicates whether metadata-only changes should trigger snapshot events.

source

val sourceListenSource!

Specifies the data source for the listener.