ORKEmailAnswerFormat Class Reference

Inherits from ORKAnswerFormat : NSObject
Declared in ORKAnswerFormat.h
ORKAnswerFormat.m

Overview

The ORKEmailAnswerFormat class represents the answer format for questions that collect an email response from the user.

An ORKEmailAnswerFormat object produces an ORKTextQuestionResult object.

– questionType

The type of question. (read-only)

- (ORKQuestionType)questionType

Discussion

You can use this enumerated value in your Objective-C code to switch on a rough approximation of the type of question that is being asked.

Note that answer format subclasses override the getter to return the appropriate question type.

Declared In

ORKAnswerFormat.h

– impliedAnswerFormat

Some answer formats are constructed of other answer formats. This method allows a subclass to return a different answer format for use in defining the UI/UX for the answer format type. For example, a Boolean answer format is presented in the same way as a single-choice answer format with the choices Yes and No mapping to @(YES) and @(NO), respectively, so its impliedAnswerFormat is an ORKTextChoiceAnswerFormat with those options.

- (ORKAnswerFormat *)impliedAnswerFormat

Declared In

ORKAnswerFormat.h