(page: Page)
| 302 | } |
| 303 | |
| 304 | public _getNavBarVisible(page: Page): boolean { |
| 305 | switch (this.actionBarVisibility) { |
| 306 | case 'always': |
| 307 | return true; |
| 308 | |
| 309 | case 'never': |
| 310 | return false; |
| 311 | |
| 312 | case 'auto': |
| 313 | switch (this._ios.navBarVisibility) { |
| 314 | case 'always': |
| 315 | return true; |
| 316 | |
| 317 | case 'never': |
| 318 | return false; |
| 319 | |
| 320 | case 'auto': { |
| 321 | let newValue: boolean; |
| 322 | |
| 323 | if (page && page.actionBarHidden !== undefined) { |
| 324 | newValue = !page.actionBarHidden; |
| 325 | } else { |
| 326 | newValue = this.ios.controller.viewControllers.count > 1 || (page && page.actionBar && !page.actionBar._isEmpty()); |
| 327 | } |
| 328 | |
| 329 | newValue = !!newValue; |
| 330 | |
| 331 | return newValue; |
| 332 | } |
| 333 | } |
| 334 | } |
| 335 | } |
| 336 | |
| 337 | public static get defaultAnimatedNavigation(): boolean { |
| 338 | return FrameBase.defaultAnimatedNavigation; |
no test coverage detected