RedemptionDetailViewController

open class RedemptionDetailViewController : DetailViewController

Undocumented

IBOutlets

  • The response message of the reward.

    Declaration

    Swift

    @IBOutlet
    open weak var messageLabel: UILabel!
  • Details of the reward.

    Declaration

    Swift

    @IBOutlet
    open weak var detailLabel: UILabel!
  • Additional notes for the reward.

    Declaration

    Swift

    @IBOutlet
    open weak var notesLabel: UILabel!
  • Image view used for indicating the status of the redemption.

    Declaration

    Swift

    @IBOutlet
    open weak var statusImageView: UIImageView!
  • Loading alert that is displayed when cancelling a redemption.

    Declaration

    Swift

    open var loadingAlert: AlertViewController
  • Returns a newly initialized redemption detail view controller with the specified collection controller.

    Declaration

    Swift

    public convenience init(detailController: DetailController,
                            isRefreshable: Bool = true)

    Parameters

    detailController

    The detail controller to associate with.

    isRefreshable

    Boolean that tells if the detail view controller is refreshable or not.

    Return Value

    The initialized redemption detail view controller.

Setup Methods

  • Set the text of the other labels that are not included in default detail view controller.

    Declaration

    Swift

    open func setText(message: String, detail: String, notes: String)
  • Setup the status image of the redemption detail.

    Declaration

    Swift

    open func setupStatusImage(with image: UIImage)

Open Methods

  • Shows a Confirmation alert for confirming if the user wants to cancel the redemption.

    Declaration

    Swift

    open func showRedemptionCancellingConfirmation()
  • Calls when the cancelling of the reward is successful.

    Declaration

    Swift

    open func redemptionCancelledSuccessfully(with apiResponse: APIResponse<Reward.Response>)
  • Calls when there is an error on cancelling the reward.

    Declaration

    Swift

    open func redemptionCancelFailed(with error: Error)