androidx.fragment:fragment-ktx

Official Description: Kotlin extensions for 'fragment' artifact

CommonsWare’s Notes

This artifact contains commit() and commitNow() extension functions on FragmentManager, to simplify executing FragmentTransactions in Kotlin.

It also contains the viewModels() and activityViewModels() property delegates, to lazily create obtain properly-scoped ViewModel instances for a fragment.

Documentation

Versions