lifecycleOwner

The LifecycleOwner of the TtNavigationBar. Since ttBreadcrumbs 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 ttBreadcrumbs 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 ttBreadcrumbs is assigned like below:

<com.tomtom.tools.android.api.uicontrols.navigationbar
auto:lifecycleOwner="@{lifecycleOwner}"
auto:ttBreadcrumbs="@{breadCrumbs}"
/>