LimitedSelectableTask

A task that limits the number of selectable items.

This task operates on a list of ViewData and ensures that the number of selected items does not exceed a specified limit. It achieves this by:

The task also manages DisposableHandle instances for the registered listeners, ensuring they are disposed of when the task is re-executed or no longer needed.

Parameters

limited

The maximum number of items that can be selected.

Constructors

Link copied to clipboard
constructor(limited: Int)

Functions

Link copied to clipboard
open operator override fun invoke(input: List<ViewData>): List<ViewData>