nativescript Hide/show - android


Example

This is a statusbar that you see on top of your screen with icons of battry,clock ... . enter image description here

let frame = require("ui/frame");

Hide:

frame.topmost().android.activity.getWindow().
getDecorView().setSystemUiVisibility(android.view.View.SYSTEM_UI_FLAG_FULLSCREEN);

Show:

frame.topmost().android.activity.getWindow().
getDecorView().setSystemUiVisibility(android.view.View.SYSTEM_UI_FLAG_VISIBLE );