HKQuizQuestion

@objc
public class HKQuizQuestion : NSObject

HKQuizQuestion represents the data associated with a HKQuiz question

Since

Since SDK 134.1
  • ID of question for reference

    Declaration

    Swift

    @objc
    public var questionId: String
  • type identifier

    Declaration

    Swift

    @objc
    public var questionType: String
  • display text of the question

    Declaration

    Swift

    @objc
    public var questionPrompt:String
  • display text of the answer

    Declaration

    Swift

    @objc
    public var answerExplanation: String
  • answerIds mapped to display text for possible answers

    Declaration

    Swift

    @objc
    public var answers: [String : String]
  • object IDs for labelled objects, if any

    Declaration

    Swift

    @objc
    public var labels: [String]