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

Fields

public static final Creator<BottomSheetBehavior.SavedState> CREATOR

Inherited fields

Public constructors

SavedState(Parcel source)
SavedState(Parcel source, ClassLoader loader)
SavedState(Parcelable superState, BottomSheetBehavior<?> behavior)
SavedState(Parcelable superstate, int state)

This constructor is deprecated. Use SavedState(Parcelable, BottomSheetBehavior) instead.

Public methods

void writeToParcel(Parcel out, int flags)

Inherited methods

Fields

CREATOR

public static final Creator<BottomSheetBehavior.SavedState> CREATOR

Public constructors

SavedState

public SavedState (Parcel source)

Parameters
source Parcel

SavedState

public SavedState (Parcel source, 
                ClassLoader loader)

Parameters
source Parcel

loader ClassLoader

SavedState

public SavedState (Parcelable superState, 
                BottomSheetBehavior<?> behavior)

Parameters
superState Parcelable

behavior BottomSheetBehavior

SavedState

public SavedState (Parcelable superstate, 
                int state)

This constructor is deprecated.
Use SavedState(Parcelable, BottomSheetBehavior) instead.

This constructor does not respect flags: BottomSheetBehavior.SAVE_PEEK_HEIGHT, BottomSheetBehavior.SAVE_FIT_TO_CONTENTS, BottomSheetBehavior.SAVE_HIDEABLE, BottomSheetBehavior.SAVE_SKIP_COLLAPSED. It is as if BottomSheetBehavior.SAVE_NONE were set.

Parameters
superstate Parcelable

state int

Public methods

writeToParcel

public void writeToParcel (Parcel out, 
                int flags)

Parameters
out Parcel

flags int