How to Enable and Disable MTP: Difference between revisions

From wizarPOS
No edit summary
(Replaced content with "{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/firmware/enable-and-disable-mtp}}")
Tag: Replaced
 
Line 1: Line 1:
== System Interface ==
{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/firmware/enable-and-disable-mtp}}
* '''AIDL Interface:''' Use the system-provided AIDL interface to manage MTP settings.
* '''Service Connection Details:'''
** '''Package Name:''' ''''com.wizarpos.wizarviewagentassistant''''
** '''Class Name''': ''''com.wizarpos.wizarviewagentassistant.SystemExtApiService''''
* '''Version Requirement:''' Ensure that ''''wizarviewagentassistant'''' is version 2.10.60 or higher.
== API Functions ==
=== <big>Enable/Disable MTP:</big> ===
  <syntaxhighlight lang="java">void enableMtp(boolean enable);</syntaxhighlight>
* This function allows you to enable or disable MTP.
{|class="wizarpostable"
|-
! scope="row" colspan="2" | Parameters
|-
| enable|| '''boolean:''' true, enable MTP, false, disable MTP.
|}
{|
|-
|}
=== <big>Check MTP Status:</big> ===
  <syntaxhighlight lang="java">boolean getMtpStatus();</syntaxhighlight>
* Returns ''''true'''' if MTP is enabled, ''''false'''' if disabled.
{|class="wizarpostable"
|-
!  scope="row" colspan="2" | Returns
|-
|  boolean || true or false.
|}
== Resources ==
* '''AIDL File:'''
** Download the necessary [http://ftp.wizarpos.com/advanceSDK/ISystemExtApi.aidl AIDL File]for implementation.
* '''Demo Application:'''
** Download the [http://ftp.wizarpos.com/advanceSDK/example_enableethernet_mtp_setlanguage.7z Demo App] for a practical implementation example.

Latest revision as of 08:45, 7 April 2024

Please visit new link of same subject:

https://smartpossdk.gitbook.io/cloudpossdk/faq/firmware/enable-and-disable-mtp

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!