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
 
(5 intermediate revisions by one other user 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. If true, shows a shutdown confirmation dialog.
|-
| wait|| '''boolean:''' true/false.  If true, this call waits for the shutdown to complete and does not return, it's sychronized, that means it will not return from this method if set ture. If false, it's asynchronized, it will return.
|}
{|
|-
|}
 
{|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!