WizarPOS-logo

WizarPOS Display Full Screen API

WizarPOS-Display-Full-Screen-API-product

Plis paseview

This guide explains how to use specific system APIs to hide the status bar and navigation bar, enabling a full-screen display on Android devices.

Konsiderasyon enpòtan

Be aware that using these APIs affects the entire system, not just your application. When you hide the status bar or navigation bar, it remains hidden across all system interfaces and applications.

Pèmisyon
android.permission.CLOUDPOS_HIDE_STATUS_BAR  The application declares permissions in the manifest.

API finiview

Hide or show status/navigation bar using HideBars
void hideBars(int state) Set status bar and navigation bar state.

Paramèt

Paramèt Deskripsyon
eta 1: hide status bar, 2: hide navigation bar, 3: hide both, 0: show both. In a device without a navigation bar, sets 2 and 3 will throw IllegalArgumentException.

Here are some code snippets:

//hideBars:Object service = getSystemService("statusbar"); Class statusBarManager = Class.forName("android.app.StatusBarManager"); Method method = statusBarManager.getMethod("hideBars", int.class); method.invoke(service, 3);

GetBarsVisibility
int getBarsVisibility(); Get the state of the status bar and navigation bar.

Retounen

Kalite Deskripsyon
int the result, 1: hide status bar, 2: hide navigation bar, 3: hide both, 0: show both. In device without navigation bar, set 2 and 3 will throw IllegalArgumentException.

Here are some code snippets:

//getBarsVisibility: Object service = getSystemService("statusbar"); Class statusBarManager = Class.forName("android.app.StatusBarManager"); Method method = statusBarManager.getMethod("getBarsVisibility"); Object object = expand.invoke(service);

Espesifikasyon

Karakteristik Deskripsyon
Non API a Display Full-Screen API
Permission Required android.permission.CLOUDPOS_HIDE_STATUS_BAR
Fonksyon hideBars(int state), getBarsVisibility()

FAQ

What does the Display Full-Screen API do?

It allows you to hide the status bar and navigation bar to enable a full-screen display on Android devices.

What permission is required to use this API?

The permission required is android. permission. CLOUDPOS_HIDE_STATUS_BAR.

What happens if I use the hideBars function on a device without a navigation bar?

Using set 2 or 3 on a device without a navigation bar will throw an IllegalArgumentException.

How can I check the visibility state of the status and navigation bars?

You can use the getBarsVisibility() function to get the current state.

Dokiman / Resous

WizarPOS Display Full Screen API [pdfEnstriksyon yo
Montre Full Screen API, Full Screen API, Screen API

Referans

Kite yon kòmantè

Adrès imel ou p ap pibliye. Jaden obligatwa yo make *