Interface OfferDetailsView
-
- All Superinterfaces:
LceView
,MvpLceView
,MvpView
- All Known Implementing Classes:
OfferDetailsActivity
public interface OfferDetailsView extends LceView
MvpView
class ofOfferDetailsActivity
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
hideFavoriteProgressDialog()
Hide current favorite progress dialogvoid
setActivityResult(int resultCode)
Set theActivity.setResult(int)
void
showDialogError(java.lang.String error)
Show a dialog error messagevoid
showFavoriteProgressDialog(boolean isFavorite)
Displays the loading and updates the visibility of the favoritevoid
showGeneratedBarcode(android.graphics.Bitmap barcodeImage)
Show the generated barcodevoid
showLoading(boolean isVisible)
Displays the loading and updates the visibility of the clip buttonvoid
showOfferDetails(Offer offer)
Notifies the view to show theOffer
details UIvoid
showOfferNotAvailableMessage()
Show a message that theOffer
is not availablevoid
updateClipButton()
Update the state of the clip button in the viewvoid
updateFavoriteButton(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 theOffer
details UI- Parameters:
offer
- Retrieved offer object
-
showOfferNotAvailableMessage
void showOfferNotAvailableMessage()
Show a message that theOffer
is not available
-
updateFavoriteButton
void updateFavoriteButton(boolean shouldBeClipped)
Update the state of clip icon and clip button- Parameters:
shouldBeClipped
-true
if theOffer
was 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
-true
if the loading is visible
-
showFavoriteProgressDialog
void showFavoriteProgressDialog(boolean isFavorite)
Displays the loading and updates the visibility of the favorite- Parameters:
isFavorite
-true
if 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
-
-