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

From wizarPOS
(Replaced content with "{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/battery-power/turn-off-terminal-api}}")
Tag: Replaced
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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.
{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/battery-power/turn-off-terminal-api}}
== Permission ==
The application declares the following permissions in the manifest:
  android.permission.CLOUDPOS_REBOOT
== API Overview ==
=== <big>shutdown</big>===
  <syntaxhighlight lang="java">boolean shutdown(boolean confirm, boolean wait);</syntaxhighlight>
Turn off terminal.
 
{|class="wizarpostable"
|-
! scope="row" colspan="2" | Parameters
|-
| confirm|| '''boolean:''' true/false.
|-
| wait|| '''boolean:''' true/false.
|}
{|
|-
|}
 
{|class="wizarpostable"
|-
!  scope="row" colspan="2" | Returns
|-
|  boolean || whether success.
|}
 
== Download ==
=== AIDL file===
Please download the [http://ftp.wizarpos.com/advanceSDK/ISystemManagerService.aidl AIDL file]. About how to bind service, please refer to the demo in [[How to set APN]].

Latest revision as of 09:03, 7 April 2024

Please visit new link of same subject:

https://smartpossdk.gitbook.io/cloudpossdk/faq/battery-power/turn-off-terminal-api

We're making a move! Our site's content is migrating to a new URL, to provide you with an enhanced browsing experience. Please update your bookmarks accordingly. Thank you for your continuous support!