Package | com.tuarua.firebase.firestore |
Class | public class FirestoreSettings |
Inheritance | FirestoreSettings ![]() |
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
FirestoreSettings |
areTimestampsInSnapshotsEnabled | property |
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.
host | property |
public var host:String
The hostname to connect to.
isPersistenceEnabled | property |
public var isPersistenceEnabled:Boolean = true
Set to false to disable local persistent storage.
isSslEnabled | property |
public var isSslEnabled:Boolean = true
Whether to use SSL when connecting.
FirestoreSettings | () | Constructor |
public function FirestoreSettings()