showFragment

open fun showFragment(@NonNull activity: FragmentActivity, @Nullable tag: String)

Show the wrapped value as a DialogFragment.

You should check the kind of view before calling this method.

Parameters

activity

The activity to show the dialog in.

tag

The tag to use for the fragment.


open fun showFragment(@NonNull fragmentManager: FragmentManager, @Nullable tag: String)

Show the wrapped value as a DialogFragment.

You should check the kind of view before calling this method.

Parameters

fragmentManager

The fragment manager to use.

tag

The tag to use for the fragment.