MediaChallengeViewController

open class MediaChallengeViewController: NibViewController,
    ImagePickerPresenterDelegate,
ChallengeResponderDelegate

Undocumented

IBOutlets

  • View that displays the video selected.

    Declaration

    Swift

    @IBOutlet
    public weak var videoContainerView: UIView!
  • Growing Text View that is used for inputting a description.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    @IBOutlet
    public weak var imageView: UIImageView!
  • Action label for displaying the type of media to be uploaded.

    Declaration

    Swift

    @IBOutlet
    public weak var actionLabel: UILabel!
  • Scroll view of the view.

    Declaration

    Swift

    @IBOutlet
    public weak var scrollView: UIScrollView!

Properties

  • UIImage for storing the image.

    Declaration

    Swift

    open var uiImage: UIImage?
  • Url of the video.

    Declaration

    Swift

    open var videoURL: URL?
  • Url of the image.

    Declaration

    Swift

    open var imageURL: String?
  • Player observer of the Media Challenge View Controller.

    Declaration

    Swift

    open var playerObserver: NSObjectProtocol?
  • Image Picker Presenter.

    Declaration

    Swift

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

    Declaration

    Swift

    open var loadingAlert: AlertViewController
  • Challenge Responder Object.

    Declaration

    Swift

    open var responder: ChallengeResponder?
  • Instance of AVPlayer.

    Declaration

    Swift

    open var player: AVPlayer?

Initializers

  • Initializer assigning the responder and the challenge

    Declaration

    Swift

    public convenience init(with challenge: Challenge)

Open Methods

  • Declaration

    Swift

    override open func setup()
  • Undocumented

    Declaration

    Swift

    override open func viewDidDisappear(_ animated: Bool)
  • Setup Bar title

    Declaration

    Swift

    open func setupTitle()
  • Setting up the text view.

    Declaration

    Swift

    open func setupTextView()
  • Setting up the image view.

    Declaration

    Swift

    open func setupImageView()
  • Setting up the video container view.

    Declaration

    Swift

    open func setupVideoContainerView()
  • Setting up the action label.

    Declaration

    Swift

    open func setupLabel()

Actions

  • Presents the image picker

    Declaration

    Swift

    @objc
    open func uploadMedia()

ChallengeResponderDelegate

  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

    open func onFailure(with error: Error)

ImagePickerPresenterDelegate