
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.
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