show Confirmation
確認ダイアログを表示する拡張関数
player.showConfirmation {
title = "削除確認"
message = "本当に削除しますか?"
onResult { result ->
when (result) {
ConfirmationResult.Confirmed -> deleteItem()
ConfirmationResult.Denied -> {}
ConfirmationResult.Cancelled -> {}
}
}
}Content copied to clipboard