Bindings

interface Bindings(source)

The Firestore types this format passes through; provided by the Firestore module.

Properties

Link copied to clipboard
abstract val documentReferenceType: KClass<*>

DocumentReference, which a @DocumentId property may have as its type.

Link copied to clipboard
abstract val nativeTypes: List<KClass<*>>

The value types passed through unchanged (Blob, DocumentReference, FieldValue, GeoPoint, VectorValue and the BSON types, and java.util.Date on Android); com.google.firebase.Timestamp always is.

Functions

Link copied to clipboard
abstract fun documentId(documentReference: Any): String

The id of documentReference, the value of a String @DocumentId property.

Link copied to clipboard
abstract fun documentPath(documentReference: Any): String

The path of documentReference, for error messages.

Link copied to clipboard
open fun fromSdkValue(value: Any): Any

The counterpart of toSdkValue for a value the platform SDK returned: the module's value for an instance of one of the SDK's own classes, and any other value as it is.

Link copied to clipboard
abstract fun serverTimestamp(): Any

FieldValue.serverTimestamp(), written for a @ServerTimestamp property that is null.

Link copied to clipboard
open fun toSdkValue(value: Any): Any

The platform SDK's value for a value of one of the nativeTypes, or a com.google.firebase.Timestamp, that the format writes: on a platform whose SDK has its own classes for them (the JS and iOS SDKs) the SDK's instance, which the SDK then takes as it is; value itself where the SDK takes the module's classes (the Android SDK and firebase-java-sdk, whose classes they are).