FragmentResultListener

interface FragmentResultListener
androidx.fragment.app.FragmentResultListener

Listener for handling fragment results. This object should be passed to FragmentManager#setFragmentResultListener(String, LifecycleOwner, FragmentResultListener) and it will listen for results with the same key that are passed into FragmentManager#setFragmentResult(String, Bundle).

Summary

Public methods

abstract Unit
onFragmentResult(@NonNull requestKey: String, @NonNull result: Bundle)

Callback used to handle results passed between fragments.

Public methods

onFragmentResult

abstract fun onFragmentResult(
    @NonNull requestKey: String,
    @NonNull result: Bundle
): Unit

Callback used to handle results passed between fragments.

Parameters
requestKey String: key used to store the result
result Bundle: result passed to the callback