requireActivity

@NonNull
fun requireActivity(): @NonNull FragmentActivity

Return the FragmentActivity this fragment is currently associated with.

See also

Throws

if not currently associated with an activity or if associated only with a context.