setContent

fun setContent(viewLifecycleOwner: LifecycleOwner, contentViewModel: MediaContentViewModel)

Set 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.