Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

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

Fields

public static final Creator<BottomSheetBehavior.SavedState> CREATOR

Inherited fields

From class androidx.customview.view.AbsSavedState

Public constructors

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

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

Public methods

void writeToParcel(Parcel out, int flags)

Inherited methods

From class androidx.customview.view.AbsSavedState
From class java.lang.Object
From interface android.os.Parcelable

Fields

CREATOR

Creator<BottomSheetBehavior.SavedState> CREATOR

Public constructors

BottomSheetBehavior.SavedState

BottomSheetBehavior.SavedState (Parcel source)

Parameters
source Parcel

BottomSheetBehavior.SavedState

BottomSheetBehavior.SavedState (Parcel source, 
                ClassLoader loader)

Parameters
source Parcel

loader ClassLoader

BottomSheetBehavior.SavedState

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

Parameters
superState Parcelable

behavior BottomSheetBehavior

BottomSheetBehavior.SavedState

BottomSheetBehavior.SavedState (Parcelable superstate, 
                int state)

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

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

Parameters
superstate Parcelable

state int

Public methods

writeToParcel

void writeToParcel (Parcel out, 
                int flags)

Parameters
out Parcel

flags int