display.statusBarHeight

Type Number
Library display.*
Revision Release 2022.3683
Keywords status bar, status bar height
See also display.setStatusBar()
display.topStatusBarContentHeight

Overview

A read-only property representing the height of the status bar in content pixels.

Important

This API has been deprecated and it's recommended that you use display.topStatusBarContentHeight instead.

Gotchas

Android 3.x devices do not support status bar and return a height of 0.