androidx.lifecycle:lifecycle-viewmodel-savedstate

Official Description: Android Lifecycle ViewModel

CommonsWare’s Notes

This artifact offers SavedStateHandle and related classes, allowing a ViewModel to participate in the saved instance state Bundle associated with its activity or fragment. This allows you to keep state management in one place, putting items into the SavedStateHandle where relevant and practical, while keeping other objects simply in the ViewModel itself.

Note that the version numbers for this artifact are not synchronized with other ViewModel-related artifacts.

Documentation

Knowledge

Versions