lifecycleOwner

The LifecycleOwner of the RecyclerView. 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.

NOTE: This property can not be null and needs to be assigned before setListItems is executed. A NullPointerException will be thrown during runtime if it is null. It is the client's responsibility to assign the LifecycleOwner properly. The lifecycleOwner needs to be set before executeBindings is executed. It is suggested to assign it in the CREATED state in the attached Fragment, for example Fragment.onViewCreated. When assigning the lifecycleOwner through the data binding in the XML should be careful, it's the client's responsibility to make sure to assign lifecycleOwner before setListItems is executed like below:

<com.tomtom.tools.android.api.uicontrols.recyclerview.TtListRecyclerView
auto:lifecycleOwner="@{lifecycleOwner}"
auto:ttListItems="@{listItems}"
/>