Interface OfferDetailsView
-
- All Superinterfaces:
LceView,MvpLceView,MvpView
- All Known Implementing Classes:
OfferDetailsActivity
public interface OfferDetailsView extends LceView
MvpViewclass ofOfferDetailsActivity
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhideFavoriteProgressDialog()Hide current favorite progress dialogvoidsetActivityResult(int resultCode)Set theActivity.setResult(int)voidshowDialogError(java.lang.String error)Show a dialog error messagevoidshowFavoriteProgressDialog(boolean isFavorite)Displays the loading and updates the visibility of the favoritevoidshowGeneratedBarcode(android.graphics.Bitmap barcodeImage)Show the generated barcodevoidshowLoading(boolean isVisible)Displays the loading and updates the visibility of the clip buttonvoidshowOfferDetails(Offer offer)Notifies the view to show theOfferdetails UIvoidshowOfferNotAvailableMessage()Show a message that theOfferis not availablevoidupdateClipButton()Update the state of the clip button in the viewvoidupdateFavoriteButton(boolean shouldBeClipped)Update the state of clip icon and clip button-
Methods inherited from interface com.cheetahdigital.uikit.architecture.lce.LceView
onLoadFailed, onLoadSuccess, setErrorViewClickListener
-
Methods inherited from interface com.cheetahdigital.uikit.architecture.lce.MvpLceView
showContent, showError, showLoading
-
-
-
-
Method Detail
-
showOfferDetails
void showOfferDetails(Offer offer)
Notifies the view to show theOfferdetails UI- Parameters:
offer- Retrieved offer object
-
showOfferNotAvailableMessage
void showOfferNotAvailableMessage()
Show a message that theOfferis not available
-
updateFavoriteButton
void updateFavoriteButton(boolean shouldBeClipped)
Update the state of clip icon and clip button- Parameters:
shouldBeClipped-trueif theOfferwas favorited
-
showDialogError
void showDialogError(java.lang.String error)
Show a dialog error message- Parameters:
error- the error message
-
showGeneratedBarcode
void showGeneratedBarcode(android.graphics.Bitmap barcodeImage)
Show the generated barcode- Parameters:
barcodeImage- the generated barcode
-
showLoading
void showLoading(boolean isVisible)
Displays the loading and updates the visibility of the clip button- Parameters:
isVisible-trueif the loading is visible
-
showFavoriteProgressDialog
void showFavoriteProgressDialog(boolean isFavorite)
Displays the loading and updates the visibility of the favorite- Parameters:
isFavorite-trueif favorite state
-
hideFavoriteProgressDialog
void hideFavoriteProgressDialog()
Hide current favorite progress dialog
-
setActivityResult
void setActivityResult(int resultCode)
Set theActivity.setResult(int)- Parameters:
resultCode- the result code
-
updateClipButton
void updateClipButton()
Update the state of the clip button in the view
-
-