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

From wizarPOS
No edit summary
(Replaced content with "{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/battery-power/turn-off-terminal-api}}")
Tag: Replaced
 
Line 1: Line 1:
== Interface and Class Information ==
{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/battery-power/turn-off-terminal-api}}
* Package Name: ''''com.wizarpos.wizarviewagentassistant''''
* Class Name: ''''com.wizarpos.wizarviewagentassistant.SilenceService''''
* Import ''''wizarviewagentassistant'''' when using this interface.
== Required Permissions ==
Add the following permission to your application's manifest: ''''android.permission.CLOUDPOS_REBOOT''''
== API Function ==
=== <big>Shutdown</big> ===
  <syntaxhighlight lang="java">boolean shutdown(boolean confirm, boolean wait);</syntaxhighlight>
* Turns off the terminal. The ''''confirm'''' parameter decides if confirmation is needed, and ''''wait'''' specifies whether to wait for shutdown completion.
{|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.
|-
!  scope="row" colspan="2" | Returns
|-
|  boolean || whether success.
|}
== Resource Download ==
* '''AIDL File:''' Download the necessary [http://ftp.wizarpos.com/advanceSDK/ISystemManagerService.aidl AIDL file] for implementation.
* '''Service Binding Demo:''' Refer to the demo provided in the [[How to Configure Access Point Name (APN) Settings]] guide for details on how to bind the service.

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!