Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

NavigationView.SavedState

public static class NavigationView.SavedState
extends AbsSavedState

java.lang.Object
   ↳ androidx.customview.view.AbsSavedState
     ↳ com.google.android.material.navigation.NavigationView.SavedState


User interface state that is stored by NavigationView for implementing onSaveInstanceState().

Summary

Inherited constants

From interface android.os.Parcelable

Fields

public static final Creator<NavigationView.SavedState> CREATOR

public Bundle menuState

Inherited fields

From class androidx.customview.view.AbsSavedState

Public constructors

NavigationView.SavedState(Parcel in, ClassLoader loader)
NavigationView.SavedState(Parcelable superState)

Public methods

void writeToParcel(Parcel dest, int flags)

Inherited methods

From class androidx.customview.view.AbsSavedState
From class java.lang.Object
From interface android.os.Parcelable

Fields

CREATOR

Creator<NavigationView.SavedState> CREATOR

menuState

Bundle menuState

Public constructors

NavigationView.SavedState

NavigationView.SavedState (Parcel in, 
                ClassLoader loader)

Parameters
in Parcel

loader ClassLoader

NavigationView.SavedState

NavigationView.SavedState (Parcelable superState)

Parameters
superState Parcelable

Public methods

writeToParcel

void writeToParcel (Parcel dest, 
                int flags)

Parameters
dest Parcel

flags int