Firebase Firestore Notes
Firebase
com.google.firebase.ktx.Firebase
https://firebase.google.com/docs/reference/kotlin/com/google/firebase/ktx/Firebase
Firebase.firestore
宣告於 com.google.firebase.firestore.ktx 的 Firestore.kt 中
沒找到其 reference
其 source code 如下
val Firebase.firestore: FirebaseFirestore
get() = FirebaseFirestore.getInstance()
FirebaseFirestore
com.google.firebase.firestore.FirebaseFirestore
https://firebase.google.com/docs/reference/kotlin/com/google/firebase/firestore/FirebaseFirestore
open fun collection(collectionPath: String): CollectionReference
CollectionReference
com.google.firebase.firestore.CollectionReference
https://firebase.google.com/docs/reference/kotlin/com/google/firebase/firestore/CollectionReference
open fun add(data: Any): Task<DocumentReference!>
Task<DocumentReference!>
com.google.android.gms.tasks.Task
https://developers.google.com/android/reference/com/google/android/gms/tasks/Task
public abstract Task<TResult> addOnSuccessListener (OnSuccessListener<? super TResult> listener)
OnSuccessListener
com.google.android.gms.tasks.OnSuccessListener
https://developers.google.com/android/reference/com/google/android/gms/tasks/OnSuccessListener
public abstract void onSuccess (TResult result)
CollectionReference
open fun get(): Task<QuerySnapshot!>
此 Method 來自 Query
Query
com.google.firebase.firestore.Query
https://firebase.google.com/docs/reference/kotlin/com/google/firebase/firestore/Query
open fun get(): Task<QuerySnapshot!>
QuerySnapshot
com.google.firebase.firestore.QuerySnapshot
https://firebase.google.com/docs/reference/kotlin/com/google/firebase/firestore/QuerySnapshot
open class QuerySnapshot : MutableIterable<QueryDocumentSnapshot!>
MutableIterable
kotlin.collections.MutableIterable
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-iterable/
interface MutableIterable<out T> : Iterable<T>
QueryDocumentSnapshot
com.google.firebase.firestore.QueryDocumentSnapshot
open class QueryDocumentSnapshot : DocumentSnapshot
DocumentSnapshot
com.google.firebase.firestore.DocumentSnapshot
https://firebase.google.com/docs/reference/kotlin/com/google/firebase/firestore/DocumentSnapshot
留言
張貼留言