资料储存库模式中的cloudefirestore如何在Kotlin中使用

时间:2020-05-08 21:01:36

标签: android firebase kotlin google-cloud-firestore

如何在Kotlin android项目Iam Newbie中以数据存储区模式使用Firestore。今天,我在firebase中看到了新的文本字符串:

项目已在数据存储模式下切换到Cloud Firestore。此模式仅适用于Google 云平台。

进入Google Cloud Platform后,看到新界面。

现在我想了解如何连接到项目上的数据存储

此代码现在可以正常工作吗?

 fun getNotesList(): Task<QuerySnapshot> {
        return firebaseFirestore.collection("notes")
            .orderBy("title", Query.Direction.DESCENDING)
            .get()
    }

0 个答案:

没有答案