android-components / mozilla.components.concept.tabstray / TabsTray / updateSessions

# updateSessions

`abstract fun updateSessions(sessions: List<Session>, selectedIndex: Int): Unit` (source)

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.

### Parameters

`sessions` - The list of sessions to be displayed.

`selectedIndex` - The list index of the currently selected session.