Zor*_*gan 2 android kotlin firebase google-cloud-firestore
我可以从我的 Firestore 获取任何类型,DocumentSnapshot除了Int:
DocumentSnapshot
Int
为什么是这样?
Dou*_*son 5
正如您从文档中看到的,Cloud Firestore 的整数类型值是 64 位有符号的,这意味着您需要 JVM long 来保存它而不可能丢失数据。如果确实必须将整数存储为 JVM int 类型,则应该将获得的值转换为getLong()int。
getLong()
归档时间:
6 年,8 月 前
查看次数:
2350 次
最近记录: