()
| 249 | */ |
| 250 | @Method() |
| 251 | async present(): Promise<void> { |
| 252 | const unlock = await this.lockController.lock(); |
| 253 | |
| 254 | await this.delegateController.attachViewToDom(); |
| 255 | |
| 256 | await present(this, 'loadingEnter', iosEnterAnimation, mdEnterAnimation); |
| 257 | |
| 258 | if (this.duration > 0) { |
| 259 | this.durationTimeout = setTimeout(() => this.dismiss(), this.duration + 10); |
| 260 | } |
| 261 | |
| 262 | unlock(); |
| 263 | } |
| 264 | |
| 265 | /** |
| 266 | * Dismiss the loading overlay after it has been presented. |
no test coverage detected