Disable Navigation Bar

Use Java SDK

  1. Version 1.7.6.1 or above of cloudpossdk

  2. System update is required for support

  3. Version 2.15.182 or above of WizarViewAgentAssistant is required

Permission

The application declares the following permissions in the manifest:

 android.permission.CLOUDPOS_NAVIGATION_BUTTON

API Overview

void disableNavigationBarButton(int btnId,
                                boolean disable)

Disable navigation bar button.

Parameters

int

btnId. (SystemAdvanceConstants#BTN_ID_HOME,SystemAdvanceConstants#BTN_ID_BACK,SystemAdvanceConstants#BTN_ID_RESENT)

boolean

true: disable; false: enable;

Snippet code

private ISystemDevice device;
if (device == null) {
  device = POSTerminalAdvance.getInstance().getSystemDevice();
}
device.open(context);
device.disableNavigationBarButton(btnId, disable);
device.close();

Resource Download

  • Refer to the cloudpos apidemo - demo

Use Android method

Capture the button event in app, see also.

Last updated