本文整理了Java中com.google.firebase.database.Query.keepSynced
方法的一些代码示例,展示了Query.keepSynced
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.keepSynced
方法的具体详情如下:
包路径:com.google.firebase.database.Query
类名称:Query
方法名:keepSynced
[英]By calling keepSynced(true) on a location, the data for that location will automatically be downloaded and kept in sync, even when no listeners are attached for that location. Additionally, while a location is kept synced, it will not be evicted from the persistent disk cache.
[中]通过对某个位置调用keepSynced(true),该位置的数据将自动下载并保持同步,即使该位置没有附加侦听器。此外,当一个位置保持同步时,它不会从持久磁盘缓存中退出。
代码示例来源:origin: TomGrill/gdx-firebase
@Override
public void keepSynced(boolean keepSynced) {
query.keepSynced(keepSynced);
}
代码示例来源:origin: chat-sdk/chat-sdk-android
.startAt(value)
.limitToFirst(limit);
query.keepSynced(true);
内容来源于网络,如有侵权,请联系作者删除!