Skip to content

Commit f20f9a4

Browse files
authored
Added GetNavBarHeight method
1 parent c733065 commit f20f9a4

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// ------------- HEADER SECTION -------------
2+
3+
4+
/** # GetNavBarHeight #
5+
* @brief Get apps navbar height
6+
* Get the navbar height of the app in pixels.
7+
*
8+
* See Also: @GetDisplayHeight, @GetDisplayWidth, @GetScreenHeight
9+
* $$ app.GetNavBarHeight() $$
10+
* @returns num_pxl
11+
*/
12+
13+
14+
15+
16+
// ------------- SAMPLES -------------
17+
18+
19+
20+
/**
21+
@sample Show navbar height
22+
function OnStart()
23+
{
24+
<b>var height = app.GetNavBarHeight();</b>
25+
app.Alert( height );
26+
}
27+
*/
28+
29+
30+
31+
/**
32+
@sample Python Show navbar height
33+
from native import app
34+
35+
def OnStart():
36+
height = app.GetNavBarHeight()
37+
app.Alert(height)
38+
*/

0 commit comments

Comments
 (0)