コンソールへ移動

FirebaseFirestoreSettings

public final class FirebaseFirestoreSettings extends Object

Settings used to configure a FirebaseFirestore instance.

Nested Class Summary

class FirebaseFirestoreSettings.Builder A Builder for creating FirebaseFirestoreSettings

Constant Summary

long CACHE_SIZE_UNLIMITED Constant to use with setCacheSizeBytes(long) to disable garbage collection.

Public Method Summary

boolean
areTimestampsInSnapshotsEnabled()
Returns whether or not DocumentSnapshots return timestamp fields as Timestamps.
boolean
long
getCacheSizeBytes()
Returns the threshold for the cache size above which the SDK will attempt to collect the least recently used documents.
String
getHost()
Returns the host of the Cloud Firestore backend.
int
boolean
isPersistenceEnabled()
Returns whether or not to use local persistent storage.
boolean
isSslEnabled()
Returns whether or not to use SSL for communication.
String

Inherited Method Summary

Constants

public static final long CACHE_SIZE_UNLIMITED

Constant to use with setCacheSizeBytes(long) to disable garbage collection.

Constant Value: -1

Public Methods

public boolean areTimestampsInSnapshotsEnabled ()

Returns whether or not DocumentSnapshots return timestamp fields as Timestamps.

public boolean equals (Object o)

public long getCacheSizeBytes ()

Returns the threshold for the cache size above which the SDK will attempt to collect the least recently used documents.

public String getHost ()

Returns the host of the Cloud Firestore backend.

public int hashCode ()

public boolean isPersistenceEnabled ()

Returns whether or not to use local persistent storage.

public boolean isSslEnabled ()

Returns whether or not to use SSL for communication.

public String toString ()