ORKConsentReviewStepViewController Class Reference
Inherits from | ORKStepViewController : UIViewController |
---|---|
Declared in | ORKConsentReviewStepViewController.h ORKConsentReviewStepViewController.m |
Overview
The ORKConsentReviewStepViewController
class is a step view controller subclass
used to manage a consent review step (ORKConsentReviewStep
).
You should not need to instantiate a consent review step view controller directly. Instead, include a consent review step in a task, and present a task view controller for that task.
– initWithConsentReviewStep:result:
Returns an initialized consent review step view controller using the specified review step and result.
- (instancetype)initWithConsentReviewStep:(ORKConsentReviewStep *)consentReviewStep result:(ORKConsentSignatureResult *)result
Parameters
consentReviewStep |
The configured review step. |
---|---|
result |
The initial or previous results for the review step, as appropriate. |
Declared In
ORKConsentReviewStepViewController.h
– result
The current state of the result. (read-only)
- (ORKStepResult *)result
Discussion
The task view controller uses this property to get the results for the step, and to collate them into the task result.
The current step result and any subsidiary results representing data collected
so far are available in this property. You can detect significant changes to the result,
such as when the user enters a new answer, using the
stepViewControllerResultDidChange:
delegate callback.
Subclasses must use this property to return the current results. Subclasses may call super to obtain a clean, empty result object appropriate for the step, to which they can attach appropriate child results.
The implementations of this method in the ResearchKit framework currently create a new result object on every call, so do not call this method unless it is actually necessary.
Declared In
ORKStepViewController.h