commons/ui / com.vmadalin.commons.ui.base / BaseFragment / requireCompatActivity

requireCompatActivity

fun requireCompatActivity(): AppCompatActivity

Return the AppCompatActivity this fragment is currently associated with.

Exceptions

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

TypeCastException - if the currently associated activity don't extend AppCompatActivity.

See Also

requireActivity