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 void
broadcastUpdate()
Send a broadcast for changes donevoid
onCodeScannedFailure(java.lang.String error)
This notifies the view when call to the code scan API failedvoid
onCodeScannedSuccessfully(BaseModel<CodeData> model)
This notifies the view when call to the code scan API is successfulvoid
showProgressDialog(boolean show, boolean isVerifying)
Show/Hide progress dialogvoid
updateDelayedSummary()
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
-true
to 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
-
-