handleTap

fun handleTap(cardIdentifier: String, isAnyFocused: Boolean, focusedCardIdentifier: String?): CardTapAction

Determines the appropriate tap action for a card given the current state.

Return

CardTapAction indicating what action should occur.

Parameters

cardIdentifier

identifier of the tapped card.

isAnyFocused

whether a card is currently focused.

focusedCardIdentifier

identifier of the currently focused card.