Interface OfferDetailsView

    • Method Detail

      • showOfferDetails

        void showOfferDetails​(Offer offer)
        Notifies the view to show the Offer details UI
        Parameters:
        offer - Retrieved offer object
      • showOfferNotAvailableMessage

        void showOfferNotAvailableMessage()
        Show a message that the Offer is not available
      • updateFavoriteButton

        void updateFavoriteButton​(boolean shouldBeClipped)
        Update the state of clip icon and clip button
        Parameters:
        shouldBeClipped - true if the Offer 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 the Activity.setResult(int)
        Parameters:
        resultCode - the result code
      • updateClipButton

        void updateClipButton()
        Update the state of the clip button in the view