# DrawerLayout.SavedState

# DrawerLayout.SavedState

Artifact:[androidx.drawerlayout:drawerlayout](https://developer.android.com/jetpack/androidx/releases/drawerlayout)  
[View Source](https://cs.android.com/search?q=file:androidx/drawerlayout/widget/DrawerLayout.java+class:androidx.drawerlayout.widget.DrawerLayout.SavedState)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/drawerlayout#1.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/drawerlayout/widget/DrawerLayout.SavedState "View this page in Java")

<br />

```
protected class DrawerLayout.SavedState : AbsSavedState
```

<br />

|---|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)                                                                                |||
| ↳ | [androidx.customview.view.AbsSavedState](https://developer.android.com/reference/kotlin/androidx/customview/view/AbsSavedState)                                ||
|   | ↳ | [androidx.drawerlayout.widget.DrawerLayout.SavedState](https://developer.android.com/reference/kotlin/androidx/drawerlayout/widget/DrawerLayout.SavedState) |

*** ** * ** ***

State persisted across instances

## Summary

|                                                                                                                 ### Constants                                                                                                                  |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|
| `const `[Parcelable.Creator](https://developer.android.com/reference/android/os/Parcelable.Creator.html)`<`[DrawerLayout.SavedState](https://developer.android.com/reference/kotlin/androidx/drawerlayout/widget/DrawerLayout.SavedState)`!>!` | [CREATOR](https://developer.android.com/reference/kotlin/androidx/drawerlayout/widget/DrawerLayout.SavedState#CREATOR()) |

|                                                                                                                                                                ### Public constructors                                                                                                                                                                |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SavedState](https://developer.android.com/reference/kotlin/androidx/drawerlayout/widget/DrawerLayout.SavedState#SavedState(android.os.Parcelable))`(superState: `[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)`)`                                                                                                 |
| [SavedState](https://developer.android.com/reference/kotlin/androidx/drawerlayout/widget/DrawerLayout.SavedState#SavedState(android.os.Parcel,java.lang.ClassLoader))`(in: `[Parcel](https://developer.android.com/reference/android/os/Parcel.html)`, loader: `[ClassLoader](https://developer.android.com/reference/java/lang/ClassLoader.html)`?)` |

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [writeToParcel](https://developer.android.com/reference/kotlin/androidx/drawerlayout/widget/DrawerLayout.SavedState#writeToParcel(android.os.Parcel,int))`(dest: `[Parcel](https://developer.android.com/reference/android/os/Parcel.html)`!, flags: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ### Inherited Constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[androidx.customview.view.AbsSavedState](https://developer.android.com/reference/kotlin/androidx/customview/view/AbsSavedState) |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------| | `const `[Parcelable.Creator](https://developer.android.com/reference/android/os/Parcelable.Creator.html)`<`[AbsSavedState](https://developer.android.com/reference/kotlin/androidx/customview/view/AbsSavedState)`!>!` | [CREATOR](https://developer.android.com/reference/kotlin/androidx/customview/view/AbsSavedState#CREATOR())         | | `const `[AbsSavedState](https://developer.android.com/reference/kotlin/androidx/customview/view/AbsSavedState)`!`                                                                                                      | [EMPTY_STATE](https://developer.android.com/reference/kotlin/androidx/customview/view/AbsSavedState#EMPTY_STATE()) | |
| From[android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) |-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------| | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR())` = 1`           | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE())` = 1` |                                                                                                                                                                                                                                                                                                                                                                         |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ### Inherited functions                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[androidx.customview.view.AbsSavedState](https://developer.android.com/reference/kotlin/androidx/customview/view/AbsSavedState) |-------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | [describeContents](https://developer.android.com/reference/kotlin/androidx/customview/view/AbsSavedState#describeContents())`()` | | [Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)`?` | [getSuperState](https://developer.android.com/reference/kotlin/androidx/customview/view/AbsSavedState#getSuperState())`()`       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| From[android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) |------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `abstract `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)   | [describeContents](https://developer.android.com/reference/android/os/Parcelable.html#describeContents())`()`                                                                                                                                                                                  | | `abstract `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [writeToParcel](https://developer.android.com/reference/android/os/Parcelable.html#writeToParcel(android.os.Parcel, int))`(p: `[Parcel](https://developer.android.com/reference/android/os/Parcel.html)`!, p1: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` | |

## Constants

### CREATOR

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/drawerlayout#1.0.0)  

```
const val CREATOR: Parcelable.Creator<DrawerLayout.SavedState!>!
```  

## Public constructors

### SavedState

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/drawerlayout#1.0.0)  

```
SavedState(superState: Parcelable)
```  

### SavedState

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/drawerlayout#1.0.0)  

```
SavedState(in: Parcel, loader: ClassLoader?)
```  

## Public functions

### writeToParcel

```
fun writeToParcel(dest: Parcel!, flags: Int): Unit
```