commonMain.dev.gitlive.firebase.firestore.internal.NativeDocumentReference.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of firebase-firestore Show documentation
Show all versions of firebase-firestore Show documentation
The Firebase Kotlin SDK is a Kotlin-first SDK for Firebase. It's API is similar to the Firebase Android SDK Kotlin Extensions but also supports multiplatform projects, enabling you to use Firebase directly from your common source targeting iOS, Android or JS.
package dev.gitlive.firebase.firestore.internal
import dev.gitlive.firebase.firestore.EncodedFieldPath
import dev.gitlive.firebase.firestore.NativeCollectionReference
import dev.gitlive.firebase.firestore.NativeDocumentReferenceType
import dev.gitlive.firebase.firestore.NativeDocumentSnapshot
import dev.gitlive.firebase.firestore.Source
import dev.gitlive.firebase.internal.EncodedObject
import kotlinx.coroutines.flow.Flow
internal expect class NativeDocumentReference(nativeValue: NativeDocumentReferenceType) {
val nativeValue: NativeDocumentReferenceType
val id: String
val path: String
val snapshots: Flow
val parent: NativeCollectionReferenceWrapper
fun snapshots(includeMetadataChanges: Boolean = false): Flow
fun collection(collectionPath: String): NativeCollectionReference
suspend fun get(source: Source = Source.DEFAULT): NativeDocumentSnapshot
suspend fun setEncoded(encodedData: EncodedObject, setOptions: SetOptions)
suspend fun updateEncoded(encodedData: EncodedObject)
suspend fun updateEncodedFieldsAndValues(encodedFieldsAndValues: List>)
suspend fun updateEncodedFieldPathsAndValues(encodedFieldsAndValues: List>)
suspend fun delete()
}