Feed Adapter
class FeedAdapter(parentActivity: Activity) : RecyclerView.Adapter<FeedViewHolder>
Content copied to clipboard
Adapter for the recycler view that handles the posts displayed on the feed.
Parameters
parentActivity
Activity calling this adapter.
Constructors
FeedAdapter
Link copied to clipboard
Creates an adapter for the recycler view that handles the posts displayed on the feed.
Properties
diffCallbacks
Link copied to clipboard
differ
Link copied to clipboard
firebaseHelper
Link copied to clipboard
parentActivity
Link copied to clipboard
Inherited properties
mHasStableIds
Link copied to clipboard
mObservable
Link copied to clipboard
mStateRestorationPolicy
Link copied to clipboard
private val mStateRestorationPolicy: RecyclerView.Adapter.StateRestorationPolicy
Content copied to clipboard
Functions
getItemCount
Link copied to clipboard
onBindViewHolder
Link copied to clipboard
open override fun onBindViewHolder(holder: FeedViewHolder, position: Int)
Content copied to clipboard
onCreateViewHolder
Link copied to clipboard
open override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): FeedViewHolder
Content copied to clipboard
updatePosts
Link copied to clipboard
Inherited functions
bindViewHolder
Link copied to clipboard
canRestoreState
Link copied to clipboard
createViewHolder
Link copied to clipboard
@NonNull()
Content copied to clipboard
findRelativeAdapterPositionIn
Link copied to clipboard
open fun findRelativeAdapterPositionIn(@NonNull() p0: RecyclerView.Adapter<out RecyclerView.ViewHolder>, @NonNull() p1: RecyclerView.ViewHolder, p2: Int): Int
Content copied to clipboard
getItemViewType
Link copied to clipboard
getStateRestorationPolicy
Link copied to clipboard
@NonNull()
Content copied to clipboard
hasObservers
Link copied to clipboard
hasStableIds
Link copied to clipboard
notifyDataSetChanged
Link copied to clipboard
fun notifyDataSetChanged()
Content copied to clipboard
notifyItemChanged
Link copied to clipboard
notifyItemInserted
Link copied to clipboard
notifyItemMoved
Link copied to clipboard
notifyItemRangeChanged
Link copied to clipboard
notifyItemRangeInserted
Link copied to clipboard
notifyItemRangeRemoved
Link copied to clipboard
notifyItemRemoved
Link copied to clipboard
onAttachedToRecyclerView
Link copied to clipboard
onBindViewHolder
Link copied to clipboard
open fun onBindViewHolder(@NonNull() p0: FeedViewHolder, p1: Int, @NonNull() p2: MutableList<Any>)
Content copied to clipboard
onDetachedFromRecyclerView
Link copied to clipboard
onFailedToRecycleView
Link copied to clipboard
onViewAttachedToWindow
Link copied to clipboard
onViewDetachedFromWindow
Link copied to clipboard
onViewRecycled
Link copied to clipboard
registerAdapterDataObserver
Link copied to clipboard
open fun registerAdapterDataObserver(@NonNull() p0: RecyclerView.AdapterDataObserver)
Content copied to clipboard
setHasStableIds
Link copied to clipboard
setStateRestorationPolicy
Link copied to clipboard
open fun setStateRestorationPolicy(@NonNull() p0: RecyclerView.Adapter.StateRestorationPolicy)
Content copied to clipboard
unregisterAdapterDataObserver
Link copied to clipboard
open fun unregisterAdapterDataObserver(@NonNull() p0: RecyclerView.AdapterDataObserver)
Content copied to clipboard