Stay organized with collections
Save and categorize content based on your preferences.
BottomSheetBehavior.SavedState
protected
static
class
BottomSheetBehavior.SavedState
extends AbsSavedState
java.lang.Object
|
↳ |
androidx.customview.view.AbsSavedState
|
|
↳ |
com.google.android.material.bottomsheet.BottomSheetBehavior.SavedState
|
State persisted across instances
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 source)
SavedState
public SavedState (Parcel source,
ClassLoader loader)
Parameters |
source |
Parcel |
loader |
ClassLoader |
SavedState
public SavedState (Parcelable superState,
BottomSheetBehavior<?> behavior)
Parameters |
superState |
Parcelable |
behavior |
BottomSheetBehavior |
Public methods
writeToParcel
public void writeToParcel (Parcel out,
int flags)
Parameters |
out |
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,["# BottomSheetBehavior.SavedState\n\nSummary: [Inherited Constants](#inhconstants) \\| [Fields](#lfields) \\| [Inherited Fields](#inhfields) \\| [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nBottomSheetBehavior.SavedState\n==============================\n\n\n`\nprotected\nstatic\n\n\nclass\nBottomSheetBehavior.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.bottomsheet.BottomSheetBehavior.SavedState |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nState persisted across instances\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`[BottomSheetBehavior.SavedState](/reference/com/google/android/material/bottomsheet/BottomSheetBehavior.SavedState)`\u003e` | [CREATOR](/reference/com/google/android/material/bottomsheet/BottomSheetBehavior.SavedState#CREATOR) |\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/bottomsheet/BottomSheetBehavior.SavedState#SavedState(android.os.Parcel))`(Parcel source) ` |\n| ` `[SavedState](/reference/com/google/android/material/bottomsheet/BottomSheetBehavior.SavedState#SavedState(android.os.Parcel,%20java.lang.ClassLoader))`(Parcel source, ClassLoader loader) ` |\n| ` `[SavedState](/reference/com/google/android/material/bottomsheet/BottomSheetBehavior.SavedState#SavedState(android.os.Parcelable,%20com.google.android.material.bottomsheet.BottomSheetBehavior\u003c?\u003e))`(Parcelable superState, `[BottomSheetBehavior](/reference/com/google/android/material/bottomsheet/BottomSheetBehavior)`\u003c?\u003e behavior) ` |\n| ` `[SavedState](/reference/com/google/android/material/bottomsheet/BottomSheetBehavior.SavedState#SavedState(android.os.Parcelable,%20int))`(Parcelable superstate, int state) ` *This constructor is deprecated. Use [SavedState(Parcelable, BottomSheetBehavior)](/reference/com/google/android/material/bottomsheet/BottomSheetBehavior.SavedState#SavedState(android.os.Parcelable,%20com.google.android.material.bottomsheet.BottomSheetBehavior\u003c?\u003e)) instead.* |\n\n| ### Public methods ||\n|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` void` | ` `[writeToParcel](/reference/com/google/android/material/bottomsheet/BottomSheetBehavior.SavedState#writeToParcel(android.os.Parcel,%20int))`(Parcel out, 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\u003cBottomSheetBehavior.SavedState\u003e CREATOR\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic constructors\n-------------------\n\n### SavedState\n\n```\npublic SavedState (Parcel source)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|-----------------|\n| `source` | `Parcel` \u003cbr /\u003e |\n\n### SavedState\n\n```\npublic SavedState (Parcel source, \n ClassLoader loader)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|----------------------|\n| `source` | `Parcel` \u003cbr /\u003e |\n| `loader` | `ClassLoader` \u003cbr /\u003e |\n\n### SavedState\n\n```\npublic SavedState (Parcelable superState, \n BottomSheetBehavior\u003c?\u003e behavior)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|------------------------------|\n| `superState` | `Parcelable` \u003cbr /\u003e |\n| `behavior` | `BottomSheetBehavior` \u003cbr /\u003e |\n\n### SavedState\n\n```\npublic SavedState (Parcelable superstate, \n int state)\n```\n\n\n**This constructor is deprecated.** \n\nUse [SavedState(Parcelable, BottomSheetBehavior)](/reference/com/google/android/material/bottomsheet/BottomSheetBehavior.SavedState#SavedState(android.os.Parcelable,%20com.google.android.material.bottomsheet.BottomSheetBehavior\u003c?\u003e)) instead.\n\nThis constructor does not respect flags: [BottomSheetBehavior.SAVE_PEEK_HEIGHT](/reference/com/google/android/material/bottomsheet/BottomSheetBehavior#SAVE_PEEK_HEIGHT), [BottomSheetBehavior.SAVE_FIT_TO_CONTENTS](/reference/com/google/android/material/bottomsheet/BottomSheetBehavior#SAVE_FIT_TO_CONTENTS), [BottomSheetBehavior.SAVE_HIDEABLE](/reference/com/google/android/material/bottomsheet/BottomSheetBehavior#SAVE_HIDEABLE), [BottomSheetBehavior.SAVE_SKIP_COLLAPSED](/reference/com/google/android/material/bottomsheet/BottomSheetBehavior#SAVE_SKIP_COLLAPSED). It is as if [BottomSheetBehavior.SAVE_NONE](/reference/com/google/android/material/bottomsheet/BottomSheetBehavior#SAVE_NONE)\nwere set.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|---------------------|\n| `superstate` | `Parcelable` \u003cbr /\u003e |\n| `state` | `int` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### writeToParcel\n\n```\npublic void writeToParcel (Parcel out, \n int flags)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|-----------------|\n| `out` | `Parcel` \u003cbr /\u003e |\n| `flags` | `int` \u003cbr /\u003e |"]]