How to Turn Off the Terminal Using the AIDL Interface: Difference between revisions

From wizarPOS
(Created page with "The system provides the AIDL interface to turn off terminal, When connect the service, the package name is '''com.wizarpos.wizarviewagentassistant''', and the class name is ''...")
 
Line 6: Line 6:
=== <big>shutdown</big>===
=== <big>shutdown</big>===
   <syntaxhighlight lang="java">boolean shutdown(boolean confirm, boolean wait);</syntaxhighlight>
   <syntaxhighlight lang="java">boolean shutdown(boolean confirm, boolean wait);</syntaxhighlight>
Enable/Disable mobile data.
Turn off terminal.


{|class="wizarpostable"
{|class="wizarpostable"

Revision as of 09:21, 4 July 2022

The system provides the AIDL interface to turn off terminal, When connect the service, the package name is com.wizarpos.wizarviewagentassistant, and the class name is com.wizarpos.wizarviewagentassistant.SilenceService. When the application uses the interface, it must import wizarviewagentassistant and add permissions to the Android manifest file.

Permission

The application declares the following permissions in the manifest:

 android.permission.CLOUDPOS_REBOOT

API Overview

shutdown

boolean shutdown(boolean confirm, boolean wait);

Turn off terminal.

Parameters
confirm boolean: true/false.
wait boolean: true/false.
Returns
boolean whether success.

Download

AIDL file

Please download the AIDL file. About how to bind service, please refer to the demo in How to set APN.