setState

open override fun setState(appInfo: AppInfo, isSelected: Boolean)(source)

Updates the selection state of the item associated with the given appInfo.

This will trigger any registered AppPickerState.OnStateChangeListener if the selection state actually changes.

Parameters

appInfo

The AppInfo of the item whose selection state needs to be set.

isSelected

true to select the item, false to deselect it.

See also