Navigation popBackStack() with arguments

Hi again !
Someday ago I wonder how to pass arguments when back to previous fragment by popBackStack() from Navigation Component.

Just a sample usecase is that we open NextScreenFragment from MediumFragment and we setup something on NextScreen . Then pass it’s result to previous screen when go back.

So, in MediumFragment you just need observe a LiveData fom back stack entry.

navigation.currentBackStackEntry
?.savedStateHandle
?.getLiveData<Boolean>("key")…