How to Block the Status Bar Using AIDL Interface: Difference between revisions

From wizarPOS
(Replaced content with "{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/block-status-bar-api}}")
Tag: Replaced
 
Line 1: Line 1:
== Overview ==
{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/block-status-bar-api}}
This guide explains how to use the Android Interface Definition Language (AIDL) to block the status bar on Android devices. When blocked, the status bar cannot be swiped down, thus restricting access to system notifications and settings.
== Implementation Steps ==
# '''Connecting to the Service:'''
#* To block the status bar, connect to the AIDL service.
#* Use ''''com.wizarpos.wizarviewagentassistant'''' as the package name.
#* Set ''''com.wizarpos.wizarviewagentassistant.SystemExtApiService'''' as the class name.
# '''Importing Necessary Components:'''
#* Your application must import the ''''wizarviewagentassistant''''.
#* Add the appropriate permissions to your app's Android manifest file to utilize this interface.
# '''Version Requirements:'''
#* Ensure that the version of ''''wizarviewagentassistant'''' you are using is version 2.10.57 or higher to ensure compatibility and proper functionality.
== Permission ==
The application declares the following permissions in the manifest:
  android.permission.CLOUDPOS_LOCK_STATUS_BAR
 
== API Overview ==
=== <big>setStatusBarLocked</big>===
  <syntaxhighlight lang="java">void setStatusBarLocked(boolean lock);</syntaxhighlight>
Set the status bar locked as true will make the status bar can not be pull down.
 
{|class="wizarpostable"
|-
! scope="row" colspan="2" | Parameters
|-
| lock|| '''boolean:'''  true for lock, false for disable lock.
|}
 
== Download ==
=== AIDL file ===
Please download the [http://ftp.wizarpos.com/advanceSDK/ISystemExtApi.aidl aidl file]
=== Demo ===
Please download the [https://github.com/SmartPOSSamples/StatusBarLockedDemo.git demo APP]

Latest revision as of 03:23, 8 April 2024

Please visit new link of same subject:

https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/block-status-bar-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!