loadState

fun loadState(savedState: TrayState)

Load the tray's internal state from a saved version.

If saved to a Bundle as mentioned in getState, the state can be retrieved as a android.os.Parcelable:

val trayState: TrayState? = savedInstanceState.getParcelable("tray_state")

The UI will be updated immediately to reflect the loaded state.

Parameters

savedState

A previously saved version of the tray's state.