(
views: NavComponent[] | NavComponentWithProps[],
opts?: NavOptions | null,
done?: TransitionDoneFn
)
| 331 | */ |
| 332 | @Method() |
| 333 | setPages( |
| 334 | views: NavComponent[] | NavComponentWithProps[], |
| 335 | opts?: NavOptions | null, |
| 336 | done?: TransitionDoneFn |
| 337 | ): Promise<boolean> { |
| 338 | opts ??= {}; |
| 339 | // if animation wasn't set to true then default it to NOT animate |
| 340 | if (opts.animated !== true) { |
| 341 | opts.animated = false; |
| 342 | } |
| 343 | return this.queueTrns( |
| 344 | { |
| 345 | insertStart: 0, |
| 346 | insertViews: views, |
| 347 | removeStart: 0, |
| 348 | removeCount: -1, |
| 349 | opts, |
| 350 | }, |
| 351 | done |
| 352 | ); |
| 353 | } |
| 354 | |
| 355 | /** |
| 356 | * Called by the router to update the view. |
no test coverage detected