SurveyResponderController

open class SurveyResponderController : NSObject, CollectionController

Undocumented

  • Parameters of answer.

    Declaration

    Swift

    open var answer: Parameters?
  • Declaration

    Swift

    open var statefulViewController: StatefulViewController?

Properties

  • The view controller for the collection view to provide data and handle actions for.

    Declaration

    Swift

    open var collectionViewController: CollectionViewController? { get set }
  • The collection view to provide data and handle actions for.

    Declaration

    Swift

    open weak var collectionView: UICollectionView? { get set }
  • The collection view layout for generating layout information of the collection view.

    Declaration

    Swift

    open var collectionViewLayout: UICollectionViewLayout { get }
  • Response setting of the Survey Challenge.

    Declaration

    Swift

    open var responseSetting: SurveyChallengeResponseSetting? { get }
  • Survey object.

    Declaration

    Swift

    open var survey: Survey?
  • Survey Respondable object.

    Declaration

    Swift

    open var surveyRespondable: SurveyRespondable? { get }

Initializer

  • Initializer assigning survey.

    Declaration

    Swift

    public convenience init(survey: Survey)

Open Methods

  • Declaration

    Swift

    open func loadContent()
  • Declaration

    Swift

    open func refreshContent()
  • Sets up the collection view’s layout, dataSource, delegate properties, and registers components to the collection view.

    Declaration

    Swift

    open func setupCollectionView()
  • Register components to the collection view.

    Declaration

    Swift

    open func registerComponents()
  • Returns the responder cell.

    Declaration

    Swift

    open func responderCell(for collectionView: UICollectionView, at indexPath: IndexPath) -> UICollectionViewCell
  • Method for handling the error.

    Declaration

    Swift

    open func handleError(_ error: Error, in collectionViewController: CollectionViewController?)

UICollectionViewDataSource

  • Undocumented

    Declaration

    Swift

    open func numberOfSections(in collectionView: UICollectionView) -> Int
  • Undocumented

    Declaration

    Swift

    open func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
  • Undocumented

    Declaration

    Swift

    open func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell

Actions

  • Called when the respond button is pressed.

    Declaration

    Swift

    @objc
    open func respondButtonPressed(_ sender: UIButton)