NativeInputChatTabItemPlugin

interface NativeInputChatTabItemPlugin : ActivePlugin

Lets a module contribute its own item(s) to the native-input Chat-tab suggestions list without depending on duckchat-impl. The host slots each contribution's RecyclerView.Adapters into the Chat-tab's ConcatAdapter.

The plugin is a singleton in the DI graph (it is multibound); it acts as a factory because the contributed adapters are stateful and bound to a single Chat-tab presentation. Implement with @ContributesActivePlugin, set parentFeatureName = "pluginPointNativeInputChatTabItemPlugin", and set priority to one of the companion constants to order against other contributions.

For the common case of a single static view (e.g. a card), extend SingleViewChatTabItem instead of implementing NativeInputChatTabItem directly.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun create(context: Context, scope: CoroutineScope): NativeInputChatTabItem

Create a fresh item bound to one Chat-tab presentation.

Link copied to clipboard
open suspend fun isActive(): Boolean