# 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)

*** ** * ** ***


```
protected class DrawerLayout.SavedState extends AbsSavedState
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.customview.view.AbsSavedState](https://developer.android.com/reference/androidx/customview/view/AbsSavedState) ||
|   | ↳ | [androidx.drawerlayout.widget.DrawerLayout.SavedState](https://developer.android.com/reference/androidx/drawerlayout/widget/DrawerLayout.SavedState) |

*** ** * ** ***

State persisted across instances

## Summary

| ### Constants |
|---|---|
| `static final https://developer.android.com/reference/android/os/Parcelable.Creator.html<https://developer.android.com/reference/androidx/drawerlayout/widget/DrawerLayout.SavedState>` | `https://developer.android.com/reference/androidx/drawerlayout/widget/DrawerLayout.SavedState#CREATOR()` |

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

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/drawerlayout/widget/DrawerLayout.SavedState#writeToParcel(android.os.Parcel,int)(https://developer.android.com/reference/android/os/Parcel.html dest, int flags)` |

| ### Inherited Constants |
|---|
| From [androidx.customview.view.AbsSavedState](https://developer.android.com/reference/androidx/customview/view/AbsSavedState) |---|---| | `static final https://developer.android.com/reference/android/os/Parcelable.Creator.html<https://developer.android.com/reference/androidx/customview/view/AbsSavedState>` | `https://developer.android.com/reference/androidx/customview/view/AbsSavedState#CREATOR()` | | `static final https://developer.android.com/reference/androidx/customview/view/AbsSavedState` | `https://developer.android.com/reference/androidx/customview/view/AbsSavedState#EMPTY_STATE()` | |
| From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) |---|---| | `static final int` | `https://developer.android.com/reference/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR = 1` | | `static final int` | `https://developer.android.com/reference/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE = 1` | |

| ### Inherited methods |
|---|
| From [androidx.customview.view.AbsSavedState](https://developer.android.com/reference/androidx/customview/view/AbsSavedState) |---|---| | `int` | `https://developer.android.com/reference/androidx/customview/view/AbsSavedState#describeContents()()` | | `final @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/os/Parcelable.html` | `https://developer.android.com/reference/androidx/customview/view/AbsSavedState#getSuperState()()` | |
| From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) |---|---| | `abstract int` | `https://developer.android.com/reference/android/os/Parcelable.html#describeContents()()` | | `abstract void` | `https://developer.android.com/reference/android/os/Parcelable.html#writeToParcel(android.os.Parcel, int)(https://developer.android.com/reference/android/os/Parcel.html p, int p1)` | |

## Constants

### CREATOR

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

```
public static final Parcelable.Creator<DrawerLayout.SavedState> CREATOR
```

## Public constructors

### SavedState

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

```
public SavedState(@NonNull Parcelable superState)
```

### SavedState

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

```
public SavedState(@NonNull Parcel in, @Nullable ClassLoader loader)
```

## Public methods

### writeToParcel

```
public void writeToParcel(Parcel dest, int flags)
```