requireActivityCompat

Returns the fragment's Activity as an AppCompatActivity and makes sure it's non-null.

Author

Arnau Mora

Since

20211121

Throws

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

If the holding activity is not an AppCompatActivity.