setContent
fun setContent(viewLifecycleOwner: LifecycleOwner, contentViewModel: MediaContentViewModel, useStickyHeader: Boolean = true)
Sets the media content to be shown in the view.
Since the content of a RecyclerView can be updated through LiveData, it is required to have a LifecycleOwner in order to observe the content data changes.
Parameters
viewLifecycleOwner
the view's LifecycleOwner.
contentViewModel
the view model of the media content to be shown.
useStickyHeader
defines if a sticky header is shown or not. By default, it is set to true
.