How to Enable and Disable MTP
The system provides the AIDL interface to enable/disable MTP, When connect the service, the package name is com.wizarpos.wizarviewagentassistant, and the class name is com.wizarpos.wizarviewagentassistant.SystemExtApiService. When the application uses the interface, it must import wizarviewagentassistant.
Version of wizarviewagentassistant should equal or larger than 2.10.60.
API Overview
enableMtp
void enableMtp(boolean enable);
Enable or disable MTP.
Parameters | |
---|---|
enable | boolean: true, enable MTP, false, disable MTP. |
getMtpStatus
boolean getMtpStatus();
true, enable; false, disable.
Returns | |
---|---|
boolean | true or false. |
Download
AIDL
Please download the AIDL
Demo
Please download the demo