APIResponse<boolean>:result === truemeans canceled successfully
PluginCommAPI
cancelRecognize
Cancel the ongoing recognition task initiated by recognizeElements.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Cancel the ongoing recognition task initiated by recognizeElements.
static cancelRecognize(): Promise<APIResponse<boolean>>;
APIResponse<boolean>: result === true means canceled successfullyimport { PluginCommAPI } from 'sn-plugin-lib';
export async function exampleCancelRecognize() {
const res = await PluginCommAPI.cancelRecognize();
if (!res.success) {
throw new Error(res.error?.message ?? 'cancelRecognize call failed');
}
return res.result;
}