草庐IT

childUpdates

全部标签

android - 删除数据时 FirebaseRecyclerAdapter 不更新项目索引

我有一个项目列表,每个项目都有一个名称和一个删除按钮。我的populateViewHolder方法@OverrideprotectedvoidpopulateViewHolder(SubChannelViewHolderviewHolder,finalSubChannelmodel,finalintposition){//passingaclickListenertoviewHolder,viewHolderinturndecidestowhichviewitshouldassignthisclickListener.viewHolder.bindToSubChannel(model,

ios - firebase - 在多个位置原子删除

有没有办法在Firebase中执行原子删除?docs说YoucanalsodeletebyspecifyingnilasthevalueforanotherwriteoperationsuchassetValueorupdateChildValues...Simultaneousupdatesmadethiswayareatomic:eitherallupdatessucceedorallupdatesfail.但我无法让它工作。我下面的代码返回错误Cannotstoreobjectoftype_SwiftValueat.CanonlystoreobjectsoftypeNSNumbe