(data?: any, role?: string)
| 466 | */ |
| 467 | @Method() |
| 468 | async dismiss(data?: any, role?: string): Promise<boolean> { |
| 469 | const unlock = await this.lockController.lock(); |
| 470 | |
| 471 | const dismissed = await dismiss(this, data, role, 'alertLeave', iosLeaveAnimation, mdLeaveAnimation); |
| 472 | |
| 473 | if (dismissed) { |
| 474 | this.delegateController.removeViewFromDom(); |
| 475 | } |
| 476 | |
| 477 | unlock(); |
| 478 | |
| 479 | return dismissed; |
| 480 | } |
| 481 | |
| 482 | /** |
| 483 | * Returns a promise that resolves when the alert did dismiss. |
no test coverage detected