Polar Help

CancellablePolarEvent Class

Introduction

The CancellablePolarEvent abstract class is used for events that can be cancelled. It extends PolarApiEvent.

Listeners registered with ignoreCancelled = true (see EventListenerRepository) are skipped for events that were already cancelled by a higher-priority listener.

Methods

cancelled

void cancelled(boolean cancelled);

Description:

Cancels the event.

Parameters:

  • cancelled - true if the event should be cancelled, false if not.

Returns:

Nothing.

cancelled

boolean cancelled();

Returns:

true if the event is cancelled, false if not.