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
 
(3 intermediate revisions by one other user not shown)
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 ==
1. '''Enable/Disable MTP:'''
* ''''void enableMtp(boolean enable)'''';
* This function allows you to enable or disable MTP.
{|class="wizarpostable"
|-
! scope="row" colspan="2" | Parameters
|-
| enable|| '''boolean:''' true, enable MTP, false, disable MTP.
|}
{|
|-
|}
2.  '''Check MTP Status:'''
* ''''boolean getMtpStatus()'''';
* 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!