Scoop API

scoop:scoop.ui:0.1.0

ItemSemantics

class ItemSemantics

source · line 6
public
public class ItemSemantics public constructor(
    public val source: ItemSource,
    public val describe: (Long) -> SemanticItemProperties?,
    public val search: SemanticItemSearch = SemanticItemSearch(),
    public val selection: SemanticCollectionSelection? = None,
    public val setSelected: ((ViewKey, Boolean) -> SemanticActionResult)? = None,
    public val grid: SemanticGrid? = None,
    public val setExpanded: ((ViewKey, Boolean) -> SemanticActionResult)? = None,
    public val setChecked: ((ViewKey, Boolean) -> SemanticActionResult)? = None
)

Data descriptions for exactly the ItemSource snapshot used by a lazy container.

constructor constructor

source · line 6
public
constructor(public val source: ItemSource, public val describe: (Long) -> SemanticItemProperties?, public val search: SemanticItemSearch = SemanticItemSearch(), public val selection: SemanticCollectionSelection? = None, public val setSelected: ((ViewKey, Boolean) -> SemanticActionResult)? = None, public val grid: SemanticGrid? = None, public val setExpanded: ((ViewKey, Boolean) -> SemanticActionResult)? = None, public val setChecked: ((ViewKey, Boolean) -> SemanticActionResult)? = None)