TestFairyFeedbackOptions Class Reference

Inherits from NSObject
Declared in TestFairy.h

+ createWithBlock:

Convenience method for creating TestFairyFeedbackOptions.

+ (instancetype)createWithBlock:(void ( ^ ) ( TestFairyFeedbackOptionsBuilder *))block

Discussion

Convenience method for creating TestFairyFeedbackOptions.

TestFairyFeedbackOptions *options = [TestFairyFeedbackOptions createWithBlock:^(TestFairyFeedbackOptionsBuilder * builder) { builder.defaultText = @“Some default text”; builder.isEmailMandatory = NO; }];

Note: Developers do not need to call “build” on the TestFairyFeedbackOptionsBuilder. This will be called internally

Declared In

TestFairy.h

  defaultText

By setting a default text, you will override the initial content of the text area inside the feedback form. This way, you can standardize the way you receive feedbacks by specifying guidelines to your users.

@property (readonly, nonatomic, strong) NSString *defaultText

Discussion

By setting a default text, you will override the initial content of the text area inside the feedback form. This way, you can standardize the way you receive feedbacks by specifying guidelines to your users.

Declared In

TestFairy.h

  isEmailMandatory

Determines whether the user has to add his email address to the feedback. Default is true

@property (readonly, nonatomic) BOOL isEmailMandatory

Discussion

Determines whether the user has to add his email address to the feedback. Default is true

Declared In

TestFairy.h

  isEmailVisible

Determines whether the email field is displayed in the feedback form. Default is true Note: If set to false, isEmailMandatory will also be set to false.

@property (readonly, nonatomic) BOOL isEmailVisible

Discussion

Determines whether the email field is displayed in the feedback form. Default is true Note: If set to false, isEmailMandatory will also be set to false.

Declared In

TestFairy.h

  interceptor

An optional callback before a feedback is sent. This allows the developer to review and modify the contents of the feedback (email, feedback body, attributes, and so on.)

@property (readonly, nonatomic, copy) TestFairyFeedbackInterceptor interceptor

Discussion

An optional callback before a feedback is sent. This allows the developer to review and modify the contents of the feedback (email, feedback body, attributes, and so on.)

Declared In

TestFairy.h

  feedbackFormFields

By setting this list, feedback forms can be customized with extra input fields. Calling with a nil or empty list will enable the default fields, namely email and feedback message.

@property (readonly, nonatomic) NSArray *feedbackFormFields

Discussion

By setting this list, feedback forms can be customized with extra input fields. Calling with a nil or empty list will enable the default fields, namely email and feedback message.

Declared In

TestFairy.h

  verifier

Provide a custom verification class for feedbacks. This allows you to control the checks that are done against the feedback’s content and email address. If not provided, TestFairy will check for valid email (if mandatory) and feedback text. By providing your own class, you can, for example, add checks for email addresses ending with your own company domain.

@property (readonly, nonatomic) id<TestFairyFeedbackVerifier> verifier

Discussion

Provide a custom verification class for feedbacks. This allows you to control the checks that are done against the feedback’s content and email address. If not provided, TestFairy will check for valid email (if mandatory) and feedback text. By providing your own class, you can, for example, add checks for email addresses ending with your own company domain.

Declared In

TestFairy.h