All Downloads are FREE. Search and download functionalities are using the official Maven repository.

iosMain.com.estiven.firebase_firestore.DocumentSnapshot.kt Maven / Gradle / Ivy

Go to download

FirebaseKMM is a Firebase Extension that supports cross-platform projects also based on Firebase Kotlin SDK, allowing you to directly from iOS and Android.

There is a newer version: 0.7.15
Show newest version
package com.estiven.firebase_firestore

actual class DocumentSnapshot(val iOS: NativeDocumentSnapshot) {
    actual fun get(field: String) = iOS.valueForField(field)
    actual fun get(fieldPath: FieldPath) = iOS.valueForField(fieldPath)
    actual fun get(field: String, serverTimestampBehavior: ServerTimestampBehavior) =
        iOS.valueForField(field, serverTimestampBehavior)

    actual fun get(fieldPath: FieldPath, serverTimestampBehavior: ServerTimestampBehavior) =
        iOS.valueForField(fieldPath, serverTimestampBehavior)

    actual inline fun  toObject(): T? = iOS.data() as T
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy