MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / _getNavBarVisible

Method _getNavBarVisible

packages/core/ui/frame/index.ios.ts:304–335  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

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;

Callers 4

_updateActionBarMethod · 0.95
onMeasureMethod · 0.45
updateMethod · 0.45

Calls 1

_isEmptyMethod · 0.80

Tested by

no test coverage detected