本文整理汇总了Java中com.firebase.client.ChildEventListener类的典型用法代码示例。如果您正苦于以下问题:Java ChildEventListener类的具体用法?Java ChildEventListener怎么用?Java ChildEventListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ChildEventListener类属于com.firebase.client包,在下文中一共展示了ChildEventListener类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: startWatchTodoListTasks
import com.firebase.client.ChildEventListener; //导入依赖的package包/类
private ListMetadata startWatchTodoListTasks(String key, final ListSpec listSpec) {
Firebase taskRef = getFirebase().child(FirebaseTodoList.TASKS).child(key);
TodoListTasksListener tasksListener = new TodoListTasksListener(key, listSpec);
ChildEventListener l = taskRef.addChildEventListener(
new TaskChildEventListener(tasksListener));
mTodoListTrackers.put(key, tasksListener);
mTodoListTaskListeners.put(key, l);
return tasksListener.getListMetadata();
}
示例2: onDestroyView
import com.firebase.client.ChildEventListener; //导入依赖的package包/类
@Override
public void onDestroyView() {
super.onDestroyView();
FirebaseManager.getReference().removeEventListener(valueListener);
for (ChildEventListener chatEventListener : chatEventListenerList) {
FirebaseManager.getReference().removeEventListener(chatEventListener);
}
}
示例3: onStop
import com.firebase.client.ChildEventListener; //导入依赖的package包/类
public void onStop() {
context.unregisterReceiver(downloadReceiver);
videos.removeEventListener((ChildEventListener) this);
videos.removeEventListener((ValueEventListener) this);
}
示例4: stopWatchTodoListTasks
import com.firebase.client.ChildEventListener; //导入依赖的package包/类
private void stopWatchTodoListTasks(String key) {
mTodoListTrackers.remove(key).disable(); // Disable; we don't want this listener anymore.
ChildEventListener l = mTodoListTaskListeners.remove(key);
getFirebase().removeEventListener(l);
}
示例5: close
import com.firebase.client.ChildEventListener; //导入依赖的package包/类
@Override
public void close() {
getFirebase().removeEventListener(mTodoListsListener);
for (ChildEventListener listener : mTodoListTaskListeners.values()) {
getFirebase().removeEventListener(listener);
}
}
示例6: addChildEventListenerForUser
import com.firebase.client.ChildEventListener; //导入依赖的package包/类
public void addChildEventListenerForUser(User user, ChildEventListener childEventListener) {
getStoryQueryByUser(user).addChildEventListener(childEventListener);
}
示例7: addStoryModerateChildEventListener
import com.firebase.client.ChildEventListener; //导入依赖的package包/类
public void addStoryModerateChildEventListener(ChildEventListener childEventListener) {
getStoriesModerationQuery().addChildEventListener(childEventListener);
}
示例8: addChildEventListener
import com.firebase.client.ChildEventListener; //导入依赖的package包/类
public void addChildEventListener(ChildEventListener childEventListener) {
getStoryReference().addChildEventListener(childEventListener);
}
示例9: removeChildEventListener
import com.firebase.client.ChildEventListener; //导入依赖的package包/类
public void removeChildEventListener(ChildEventListener childEventListener) {
getStoryReference().removeEventListener(childEventListener);
}
示例10: addChildEventListenerForPublicGroups
import com.firebase.client.ChildEventListener; //导入依赖的package包/类
public void addChildEventListenerForPublicGroups(ChildEventListener listener) {
getDefaultRoot().child(chatRoomPath).orderByChild("privateAccess")
.equalTo(false).addChildEventListener(listener);
}
示例11: removeChildEventListenerForPublicGroups
import com.firebase.client.ChildEventListener; //导入依赖的package包/类
public void removeChildEventListenerForPublicGroups(ChildEventListener listener) {
getDefaultRoot().child(chatRoomPath).orderByChild("privateAccess")
.equalTo(false).removeEventListener(listener);
}
示例12: addChildEventListenerForChatMessages
import com.firebase.client.ChildEventListener; //导入依赖的package包/类
public void addChildEventListenerForChatMessages(String key, ChildEventListener listener) {
getChatMessagesQuery(key).addChildEventListener(listener);
}
示例13: removeEventListenerForChatMessages
import com.firebase.client.ChildEventListener; //导入依赖的package包/类
public void removeEventListenerForChatMessages(String key, ChildEventListener listener) {
getChatMessagesQuery(key).removeEventListener(listener);
}
示例14: addChildEventListener
import com.firebase.client.ChildEventListener; //导入依赖的package包/类
public void addChildEventListener(String key, ChildEventListener childEventListener) {
getDefaultRoot().child(type.path).child(key).addChildEventListener(childEventListener);
}