setCancelled

abstract fun setCancelled(cancel: Boolean)

Sets the cancellation state of this event. A cancelled event will not be executed, preventing further processing.

Parameters

cancel

true if you wish to cancel this event, false otherwise.