How to Enable and Disable MTP: Difference between revisions
No edit summary |
m (Simon moved page How to enable/disable MTP to How to Enable and Disable MTP: Normalize the title) |
(No difference)
|
Revision as of 20:03, 28 December 2023
System Interface
- 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.
Parameters | |
---|---|
enable | boolean: true, enable MTP, false, disable MTP. |
2. Check MTP Status:
- 'boolean getMtpStatus()';
- Returns 'true' if MTP is enabled, 'false' if disabled.
Returns | |
---|---|
boolean | true or false. |