Functions

Link copied to clipboard
abstract fun allow()

Allows this event to occur.

Link copied to clipboard
open fun allowWithResult(result: T)

Allows this event to occur, and sets the result to the given result.

Link copied to clipboard
abstract fun deny()

Denies an event from occurring.

Link copied to clipboard
open fun denyWithResult(result: T)

Denies this event from occur, and sets the result to the given result.

Link copied to clipboard
abstract fun isAllowed(): Boolean

Checks if this event is allowed to happen.

Properties

Link copied to clipboard
abstract var result: T?

The result that is returned by this event.