Lines Matching refs:cancel
107 ## Notification.cancel
109 cancel(id: number, label: string, callback: AsyncCallback\<void\>): void
128 // cancel回调
131 console.info("cancel failed " + JSON.stringify(err));
133 console.info("cancel success");
136 Notification.cancel(0, "label", cancelCallback);
141 ## Notification.cancel
143 cancel(id: number, label?: string): Promise\<void\>
167 Notification.cancel(0).then(() => {
168 console.info("cancel success");
170 console.error(`cancel failed, code is ${err}`);
176 ## Notification.cancel
178 cancel(id: number, callback: AsyncCallback\<void\>): void
196 // cancel回调
199 console.info("cancel failed " + JSON.stringify(err));
201 console.info("cancel success");
204 Notification.cancel(0, cancelCallback);
228 // cancel回调