AvatarChallengeViewController

open class AvatarChallengeViewController: NibViewController,
    ChallengeResponderDelegate,
ImagePickerPresenterDelegate

Undocumented

IBOutlets

  • Scroll view of the view.

    Declaration

    Swift

    @IBOutlet
    public weak var scrollView: UIScrollView!
  • Button that is used for responding to the challenge.

    Declaration

    Swift

    @IBOutlet
    public weak var submitButton: UIButton!
  • Image view that displays the image.

    Declaration

    Swift

    @IBOutlet
    public weak var imageView: UIImageView!
  • Upload label of the view.

    Declaration

    Swift

    @IBOutlet
    public weak var uploadLabel: UILabel!

Properties

  • Image Picker Presenter.

    Declaration

    Swift

    open var imagePickerPresenter: ImagePickerPresenter?
  • Player observer of the Avatar Challenge View Controller.

    Declaration

    Swift

    open var playerObserver: NSObjectProtocol?
  • UIImage for storing the image.

    Declaration

    Swift

    open var uiImage: UIImage?
  • Challenge Responder object.

    Declaration

    Swift

    open var responder: ChallengeResponder?
  • Loading alert that is displayed when responding on a challenge.

    Declaration

    Swift

    open var loadingAlert: AlertViewController

Initializers

  • Initializer assigning the responder.

    Declaration

    Swift

    public convenience init(with challenge: Challenge)

Open Methods

  • Declaration

    Swift

    override open func setup()
  • Setting up the image view.

    Declaration

    Swift

    open func setupImageView()
  • Setting up the upload label.

    Declaration

    Swift

    open func setupUploadLabel()
  • Presents the image picker.

    Declaration

    Swift

    @objc
    open func uploadPhoto()

ImagePickerPresenterDelegate

ChallengeResponderDelegate

  • Undocumented

    Declaration

    Swift

    open func onSuccess(with apiResponse: APIResponse<Challenge.ResponseInfo>)
  • Undocumented

    Declaration

    Swift

    open func onFailure(with error: Error)