NativeInputChatTabItem

A single contribution to the Chat-tab list. Purely a rendering surface: it owns its adapter(s) and view holders, and the host only positions them.

Input state the item needs to decide its rows — the current query, the displayed mode — is read from the shared state in this module (e.g. com.duckduckgo.duckchat.api.DuckChatInputModeState.inputQuery and displayedMode), not pushed in here. An item observes that state (combining it with its own async data) and updates its adapter(s); an item with no rows contributes no content and does not keep the suggestions overlay open. For the common single-view card see SingleViewChatTabItem.

Inheritors

Properties

Link copied to clipboard

The adapters slotted into the host's ConcatAdapter, in order. Most items contribute a single adapter; returning several lets one item own multiple sections without nesting ConcatAdapters. The plugin fully owns each adapter's item count and view holders.