Stay organized with collections
Save and categorize content based on your preferences.
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
int |
CONTENTS_FILE_DESCRIPTOR
|
int |
PARCELABLE_WRITE_RETURN_VALUE
|
|
Inherited fields |
From class
androidx.customview.view.AbsSavedState
public
static
final
Creator<AbsSavedState> |
CREATOR
|
public
static
final
AbsSavedState |
EMPTY_STATE
|
|
Inherited methods |
From class
androidx.customview.view.AbsSavedState
int
|
describeContents()
|
final
Parcelable
|
getSuperState()
|
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Fields
Public constructors
SavedState
public SavedState (Parcel in,
ClassLoader loader)
Parameters |
in |
Parcel |
loader |
ClassLoader |
SavedState
public SavedState (Parcelable superState)
Parameters |
superState |
Parcelable |
Public methods
writeToParcel
public void writeToParcel (Parcel dest,
int flags)
Parameters |
dest |
Parcel |
flags |
int |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# NavigationView.SavedState\n\nSummary: [Inherited Constants](#inhconstants) \\| [Fields](#lfields) \\| [Inherited Fields](#inhfields) \\| [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nNavigationView.SavedState\n=========================\n\n\n`\npublic\nstatic\n\n\nclass\nNavigationView.SavedState\n`\n\n\n`\n\n\n`\n\n`\n\nextends AbsSavedState\n\n\n`\n\n`\n\n\n`\n\n|---|---|------------------------------------------------------------------|\n| java.lang.Object |||\n| ↳ | androidx.customview.view.AbsSavedState ||\n| | ↳ | com.google.android.material.navigation.NavigationView.SavedState |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nUser interface state that is stored by NavigationView for implementing onSaveInstanceState().\n\nSummary\n-------\n\n| ### Inherited constants |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| From interface `android.os.Parcelable` |-------|---------------------------------| | `int` | `CONTENTS_FILE_DESCRIPTOR` | | `int` | `PARCELABLE_WRITE_RETURN_VALUE` | |\n\n| ### Fields ||\n|--------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------|\n| ` public static final Creator\u003c`[NavigationView.SavedState](/reference/com/google/android/material/navigation/NavigationView.SavedState)`\u003e` | [CREATOR](/reference/com/google/android/material/navigation/NavigationView.SavedState#CREATOR) |\n| ` public Bundle` | [menuState](/reference/com/google/android/material/navigation/NavigationView.SavedState#menuState) |\n\n| ### Inherited fields |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| From class `androidx.customview.view.AbsSavedState` |-----------------------------------------------|---------------| | ` public static final Creator\u003cAbsSavedState\u003e` | `CREATOR` | | ` public static final AbsSavedState` | `EMPTY_STATE` | |\n\n| ### Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[SavedState](/reference/com/google/android/material/navigation/NavigationView.SavedState#SavedState(android.os.Parcel,%20java.lang.ClassLoader))`(Parcel in, ClassLoader loader) ` |\n| ` `[SavedState](/reference/com/google/android/material/navigation/NavigationView.SavedState#SavedState(android.os.Parcelable))`(Parcelable superState) ` |\n\n| ### Public methods ||\n|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` void` | ` `[writeToParcel](/reference/com/google/android/material/navigation/NavigationView.SavedState#writeToParcel(android.os.Parcel,%20int))`(Parcel dest, int flags) ` |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` androidx.customview.view.AbsSavedState ` |---------------------|------------------------------------------| | ` int` | ` describeContents() ` | | ` final Parcelable` | ` getSuperState() ` | | ` void` | ` writeToParcel(Parcel arg0, int arg1) ` | ||\n| From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n| From interface ` android.os.Parcelable ` |------------------|------------------------------------------| | ` abstract int` | ` describeContents() ` | | ` abstract void` | ` writeToParcel(Parcel arg0, int arg1) ` | ||\n\nFields\n------\n\n### CREATOR\n\n```\npublic static final Creator\u003cNavigationView.SavedState\u003e CREATOR\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### menuState\n\n```\npublic Bundle menuState\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic constructors\n-------------------\n\n### SavedState\n\n```\npublic SavedState (Parcel in, \n ClassLoader loader)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|----------------------|\n| `in` | `Parcel` \u003cbr /\u003e |\n| `loader` | `ClassLoader` \u003cbr /\u003e |\n\n### SavedState\n\n```\npublic SavedState (Parcelable superState)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|---------------------|\n| `superState` | `Parcelable` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### writeToParcel\n\n```\npublic void writeToParcel (Parcel dest, \n int flags)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|-----------------|\n| `dest` | `Parcel` \u003cbr /\u003e |\n| `flags` | `int` \u003cbr /\u003e |"]]