cancel static method

void cancel(
  1. EventHandler handler
)

Cancels an ongoing social overlay operation.

Terminates an active asynchronous operation started by methods returning EventHandler, such as report, confirmReport, denyReport, deleteReport, updateReport, or addComment. Cancellation prevents the onComplete callback from executing.

Parameters

  • handler: The EventHandler returned from the operation to cancel.

See also:

  • report - Submits new social report (cancellable).
  • confirmReport - Upvotes report validity (cancellable).

Implementation

static void cancel(EventHandler handler) {
  staticMethod(
    'SocialOverlay',
    'cancel',
    args: (handler as ProgressListener).id,
  );
}