(data?: any, role?: string)
| 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. |
no test coverage detected