cancelWikiInfo static method

void cancelWikiInfo(
  1. EventHandler operationHandler
)

Cancel a previously started Wikipedia request.

The provided operationHandler must be an instance returned by requestWikiInfo (an ExternalInfoHandler).

Parameters

Implementation

static void cancelWikiInfo(EventHandler operationHandler) {
  if (operationHandler is! ExternalInfoHandler) {
    ApiErrorServiceImpl.apiErrorAsInt = -1;
    return;
  }

  operationHandler.cancelWikiInfo();
}