Package com.cheetahdigital.codes.ui
Interface CodeScannerView
- 
- All Superinterfaces:
 MvpView
- All Known Implementing Classes:
 CodeScannerActivity
public interface CodeScannerView extends MvpView
View to be implemented forCodeScannerActivity 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbroadcastUpdate()Send a broadcast for changes donevoidonCodeScannedFailure(java.lang.String error)This notifies the view when call to the code scan API failedvoidonCodeScannedSuccessfully(BaseModel<CodeData> model)This notifies the view when call to the code scan API is successfulvoidshowProgressDialog(boolean show, boolean isVerifying)Show/Hide progress dialogvoidupdateDelayedSummary()Update summary with delay 
 - 
 
- 
- 
Method Detail
- 
onCodeScannedSuccessfully
void onCodeScannedSuccessfully(BaseModel<CodeData> model)
This notifies the view when call to the code scan API is successful- Parameters:
 model- contains the data and the message returned by the server
 
- 
onCodeScannedFailure
void onCodeScannedFailure(java.lang.String error)
This notifies the view when call to the code scan API failed- Parameters:
 error- error message
 
- 
showProgressDialog
void showProgressDialog(boolean show, boolean isVerifying)Show/Hide progress dialog- Parameters:
 show-trueto show, else falseisVerifying- check if progress is for verifying, else it is for simple loading
 
- 
broadcastUpdate
void broadcastUpdate()
Send a broadcast for changes done 
- 
updateDelayedSummary
void updateDelayedSummary()
Update summary with delay 
 - 
 
 -