ORKRegistrationStep Class Reference
Inherits from | ORKFormStep : ORKStep : NSObject |
---|---|
Declared in | ORKRegistrationStep.h |
The ORKRegistrationStep
class represents a form step that provides fields commonly used
for account registration.
The registration step contains email and password fields by default. Optionally, any of the additional fields can be included based on context and requirements.
– initWithIdentifier:title:text:passcodeValidationRegularExpression:passcodeInvalidMessage:options:
Returns an initialized registration step using the specified identifier, title, text, options, passcodeValidationRegularExpression, and passcodeInvalidMessage.
- (instancetype)initWithIdentifier:(NSString *)identifier title:(nullable NSString *)title text:(nullable NSString *)text passcodeValidationRegularExpression:(nullable NSRegularExpression *)passcodeValidationRegularExpression passcodeInvalidMessage:(nullable NSString *)passcodeInvalidMessage options:(ORKRegistrationStepOption)options
Parameters
identifier |
The string that identifies the step (see |
---|---|
title |
The title of the form (see |
text |
The text shown immediately below the title (see |
passcodeValidationRegularExpression |
The regular expression used to validate the passcode form item (see |
passcodeInvalidMessage |
The invalid message displayed for invalid input (see |
options |
The options used for the step (see |
Return Value
An initialized registration step object.
Declared In
ORKRegistrationStep.h
– initWithIdentifier:title:text:options:
Returns an initialized registration step using the specified identifier, title, text, and options.
- (instancetype)initWithIdentifier:(NSString *)identifier title:(nullable NSString *)title text:(nullable NSString *)text options:(ORKRegistrationStepOption)options
Parameters
identifier |
The string that identifies the step (see |
---|---|
title |
The title of the form (see |
text |
The text shown immediately below the title (see |
options |
The options used for the step (see |
Return Value
An initialized registration step object.
Declared In
ORKRegistrationStep.h
options
The options used for the step.
@property (nonatomic, readonly) ORKRegistrationStepOption options
Discussion
These options allow one or more fields to be included in the registration step.
Declared In
ORKRegistrationStep.h
passcodeValidationRegularExpression
The regular expression used to validate the passcode form item.
This is a transparent property pointing to its definition in ORKTextAnswerFormat
.
@property (nonatomic, copy, nullable) NSRegularExpression *passcodeValidationRegularExpression
Discussion
The passcode invalid message property must also be set along with this property. By default, there is no validation on the passcode.
Declared In
ORKRegistrationStep.h
passcodeInvalidMessage
The invalid message displayed if the passcode does not match the validation regular expression.
This is a transparent property pointing to its definition in ORKTextAnswerFormat
.
@property (nonatomic, copy, nullable) NSString *passcodeInvalidMessage
Discussion
The passcode validation regular expression property must also be set along with this property. By default, there is no invalid message.
Declared In
ORKRegistrationStep.h
phoneNumberValidationRegularExpression
The regular expression used to validate the phone number form item.
This is a transparent property pointing to its definition in ORKTextAnswerFormat
.
@property (nonatomic, copy, nullable) NSRegularExpression *phoneNumberValidationRegularExpression
Discussion
The phone number invalid message property must also be set along with this property. By default, there is no validation on the phone number.
Declared In
ORKRegistrationStep.h
phoneNumberInvalidMessage
The invalid message displayed if the phone number does not match the validation regular expression.
This is a transparent property pointing to its definition in ORKTextAnswerFormat
.
@property (nonatomic, copy, nullable) NSString *phoneNumberInvalidMessage
Discussion
The phone number validation regular expression property must also be set along with this property. By default, there is no invalid message.
Declared In
ORKRegistrationStep.h