@Override
    public void onDetachedFromWindow(RecyclerView view, RecyclerView.Recycler recycler) {
        super.onDetachedFromWindow(view, recycler);

        // Update positions in case we need to save post-detach
        updateFirstAdapterPosition();
    }
Assign callback object to be notified when a header view position changes between states of the HeaderPosition enum

@param headerPositionChangedCallback the callback
@see HeaderPosition
android/modules/module_common/src/main/java/github/tornaco/android/thanos/widget/section/StickyHeaderLayoutManager.java