Interface FragmentResultListener


public interface 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, DataSet).

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onFragmentResult(String requestKey, DataSet result)
    Callback used to handle results passed between fragments.
  • Method Details

    • onFragmentResult

      void onFragmentResult(@Nonnull String requestKey, @Nonnull DataSet result)
      Callback used to handle results passed between fragments.
      Parameters:
      requestKey - key used to store the result
      result - result passed to the callback