本文整理了Java中com.google.firebase.database.Query.removeEventListener
方法的一些代码示例,展示了Query.removeEventListener
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.removeEventListener
方法的具体详情如下:
包路径:com.google.firebase.database.Query
类名称:Query
方法名:removeEventListener
[英]Remove the specified listener from this location.
[中]从此位置删除指定的侦听器。
代码示例来源:origin: chat-sdk/chat-sdk-android
private void removeListener () {
if(cel != null) {
ref.removeEventListener(cel);
}
if(vel != null) {
ref.removeEventListener(vel);
}
}
代码示例来源:origin: firebase/snippets-android
public void cleanBasicQuery() {
// Clean up query listener
// [START clean_basic_query]
mMessagesQuery.removeEventListener(mMessagesQueryListener);
// [END clean_basic_query]
}
代码示例来源:origin: firebase/firebase-admin-java
@Override
public void onDataChange(DataSnapshot snapshot) {
// Removing the event listener will also prevent any further calls into
// onDataChange
removeEventListener(this);
listener.onDataChange(snapshot);
}
代码示例来源:origin: hieuapp/android-firebase-chat
@Override
public void onDestroy() {
super.onDestroy();
for (String id : listKey) {
mapQuery.get(id).removeEventListener(mapChildEventListenerMap.get(id));
}
mapQuery.clear();
mapChildEventListenerMap.clear();
mapBitmap.clear();
updateOnline.cancel();
Log.d(TAG, "OnDestroyService");
}
代码示例来源:origin: TomGrill/gdx-firebase
@Override
public void removeEventListener(ValueEventListener listener) {
int index = valueEventListenerList.indexOf(listener, true);
if (index != -1) {
query.removeEventListener(fbValueEventListenerList.get(index));
fbValueEventListenerList.removeIndex(index);
valueEventListenerList.removeIndex(index);
}
}
代码示例来源:origin: TomGrill/gdx-firebase
@Override
public void removeEventListener(ChildEventListener listener) {
int index = childEventListenerList.indexOf(listener, true);
if (index != -1) {
query.removeEventListener(fbChildEventListenerList.get(index));
fbChildEventListenerList.removeIndex(index);
childEventListenerList.removeIndex(index);
}
}
代码示例来源:origin: hieuapp/android-firebase-chat
mapMark.put(id, true);
} else {
mapQuery.get(id).removeEventListener(mapChildListener.get(id));
mapQuery.get(id).addChildEventListener(mapChildListener.get(id));
mapMark.put(id, true);
内容来源于网络,如有侵权,请联系作者删除!