Packagecom.tuarua.firebase.firestore
Classpublic class FirestoreSettings
InheritanceFirestoreSettings Inheritance Object



Public Properties
 PropertyDefined By
  areTimestampsInSnapshotsEnabled : Boolean = true
Specifies whether to use FIRTimestamps for timestamp fields in FIRDocumentSnapshots.
FirestoreSettings
  host : String
The hostname to connect to.
FirestoreSettings
  isPersistenceEnabled : Boolean = true
Set to false to disable local persistent storage.
FirestoreSettings
  isSslEnabled : Boolean = true
Whether to use SSL when connecting.
FirestoreSettings
Public Methods
 MethodDefined By
  
FirestoreSettings
Property Detail
areTimestampsInSnapshotsEnabledproperty
public var areTimestampsInSnapshotsEnabled:Boolean = true

Specifies whether to use FIRTimestamps for timestamp fields in FIRDocumentSnapshots. This is now enabled by default and should not be disabled. Previously, Firestore returned timestamp fields as NSDate but NSDate is implemented as a double which loses precision and causes unexpected behavior when using a timestamp from a snapshot as a part of a subsequent query. So now Firestore returns FIRTimestamp values instead of NSDate, avoiding this kind of problem. To opt into the old behavior of returning NSDate objects, you can temporarily set areTimestampsInSnapshotsEnabled to false.

hostproperty 
public var host:String

The hostname to connect to.

isPersistenceEnabledproperty 
public var isPersistenceEnabled:Boolean = true

Set to false to disable local persistent storage.

isSslEnabledproperty 
public var isSslEnabled:Boolean = true

Whether to use SSL when connecting.

Constructor Detail
FirestoreSettings()Constructor
public function FirestoreSettings()