fun updateSessions(sessions: List<Session>, selectedIndex: Int): Unit
(source)
Overrides TabsTray.updateSessions
Updates the list of sessions.
Calling this method is usually followed by calling onSession*() methods to indicate what exactly has changed. This allows the tabs tray implementation to animate between the old and new state.
sessions
- The list of sessions to be displayed.
selectedIndex
- The list index of the currently selected session.