cancelSearch static method

void cancelSearch(
  1. TaskHandler taskHandler
)

Cancel specific request identified by the task handler.

Parameters

  • IN taskHandler The task handler associated with the request to be canceled.

Returns

  • Associated TaskHandler for this operation if the search can be started otherwise null.

Throws

  • An exception if it fails.

Implementation

static void cancelSearch(final TaskHandler taskHandler) {
  taskHandler as TaskHandlerImpl;
  GemKitPlatform.instance.callObjectMethod(
    jsonEncode(<String, dynamic>{
      'id': 0,
      'class': 'SearchService',
      'method': 'cancelSearch',
      'args': taskHandler.id,
    }),
  );
}