Chapter 6: Module wise Scan and Clear Process ‐ Version 17 (0.1.7) update - zymbia-carpm/garagepro_sdk GitHub Wiki
Change 1: There is a new callback function added in 'GProScanListener' Listener for the scan process
@Override
public void onScanModulesList(List<String> moduleList) {
Log.d(TAG, "Number of modules available: " + moduleList.size());
// Returns a list of module names available for scanning the selected vehicle
}
gProScanProcess.selectScanModuleList(moduleList);
You can choose to display the list of module names to the user for selection, any number of modules can be selected for scan. After selection, call this function with the list and the scan process continues as before.
NOTE - If you want to keep the process as it is, and only want to perform full scan, you can directly call 'selectScanModuleList(List moduleList)' function with the module list returned in 'onScanModulesList(List moduleList)'
Change 1: There is a new callback function added in 'GProScanListener' Listener for the clear process
@Override
public void onClearModulesList(List<String> moduleList) {
Log.d(TAG, "Number of modules available: " + moduleList.size());
// Returns a list of module names available for clearing the selected vehicle
}
gProScanProcess.selectClearModuleList(moduleList);
You can choose to display the list of module names to the user for selection, any number of modules can be selected for clear codes. After selection, call this function with the list and the clear process continues as before.
NOTE - If you want to keep the process as it is, and only want to perform full clear, you can directly call 'selectClearModuleList(List moduleList)' function with the module list returned in 'onClearModulesList(List moduleList)'