AvatarChallengeViewController
open class AvatarChallengeViewController: NibViewController,
ChallengeResponderDelegate,
ImagePickerPresenterDelegate
Undocumented
-
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!
-
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
-
Initializer assigning the responder.
Declaration
Swift
public convenience init(with challenge: Challenge)
-
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()
-
Declaration
Swift
open func didSelect(asset: PHAsset?, image: UIImage, with imageURL: URL?, from imagePickerPresenter: ImagePickerPresenter)
-
Declaration
Swift
open func didSelect(asset: PHAsset?, movieURL: URL, from imagePickerPresenter: ImagePickerPresenter)
-
Declaration
Swift
open func didCancelPickingImage()
-
Undocumented
Declaration
Swift
open func onSuccess(with apiResponse: APIResponse<Challenge.ResponseInfo>)
-
Undocumented
Declaration
Swift
open func onFailure(with error: Error)