MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / dismiss

Method dismiss

core/src/components/loading/loading.tsx:278–293  ·  view source on GitHub ↗
(data?: any, role?: string)

Source from the content-addressed store, hash-verified

276 */
277 @Method()
278 async dismiss(data?: any, role?: string): Promise<boolean> {
279 const unlock = await this.lockController.lock();
280
281 if (this.durationTimeout) {
282 clearTimeout(this.durationTimeout);
283 }
284 const dismissed = await dismiss(this, data, role, 'loadingLeave', iosLeaveAnimation, mdLeaveAnimation);
285
286 if (dismissed) {
287 this.delegateController.removeViewFromDom();
288 }
289
290 unlock();
291
292 return dismissed;
293 }
294
295 /**
296 * Returns a promise that resolves when the loading did dismiss.

Callers 3

onIsOpenChangeMethod · 0.95
presentMethod · 0.95
LoadingClass · 0.95

Calls 3

dismissFunction · 0.90
lockMethod · 0.80
removeViewFromDomMethod · 0.65

Tested by

no test coverage detected