How to block and get home button
The system provides the AIDL interface to block and get the power button, when block, the status bar can not be slided down. When connect the service, the package name is com.wizarpos.wizarviewagentassistant, and the class name is com.wizarpos.wizarviewagentassistant.SystemExtApiService. When the application uses the interface, it must import wizarviewagentassistant and add permissions to the Android manifest file.
Version of wizarviewagentassistant should equal or larger than 2.10.57.
Permission
The application declares the following permissions in the manifest:
android.permission.CLOUDPOS_LOCK_STATUS_BAR
API Overview
setStatusBarLocked
void setStatusBarLocked(boolean lock);
Set the status bar locked as true will make the status bar can not be pull down.
Parameters | |
---|---|
lock | boolean: true for lock, false for disable lock. |
Download
AIDL file
Please download the aidl file
Demo
Please download the demo APP