public static class FeedbackOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
FeedbackOptions |
build()
Create FeedbackOptions
|
FeedbackOptions.Builder |
setBrowserUrl(java.lang.String url)
By setting the url, You will override the default TestFairy feedback form,
The specified url will be opened in the browser, when the user will want to provide a feedback.
|
FeedbackOptions.Builder |
setCallback(FeedbackOptions.Callback callback)
By setting the callback, You will be notified for "onFeedbackSent", "onFeedbackCancelled" and "onFeedbackFailed"
|
FeedbackOptions.Builder |
setDefaultText(java.lang.String defaultText)
By setting a default text, you will override the initial content of the text area
inside the feedback form.
|
FeedbackOptions.Builder |
setEmailFieldVisible(boolean visible)
Determines whether the "email field" in the Feedback form will be visible or not.
|
FeedbackOptions.Builder |
setEmailMandatory(boolean mandatory)
Determines whether the user has to add his email address to the feedback.
|
FeedbackOptions.Builder |
setFeedbackFormFields(java.util.List<FeedbackFormField> feedbackFormFields)
By setting this list, feedback forms can be customized with extra input fields.
|
FeedbackOptions.Builder |
setFeedbackInterceptor(FeedbackOptions.FeedbackInterceptor feedbackInterceptor)
By setting this interface, feedback can become available for inspection before
they are submitted.
|
FeedbackOptions.Builder |
setRecordVideoButtonVisible(boolean enabled)
By setting this flag, you can show/hide "Take a screen recording" button.
|
FeedbackOptions.Builder |
setTakeScreenshotButtonVisible(boolean enabled)
By setting this flag, you can show/hide "Take a screenshot" button.
|
public FeedbackOptions.Builder setEmailFieldVisible(boolean visible)
visible
- Booleanpublic FeedbackOptions.Builder setEmailMandatory(boolean mandatory)
mandatory
- Booleanpublic FeedbackOptions.Builder setCallback(FeedbackOptions.Callback callback)
callback
- FeedbackOptions.Callbackpublic FeedbackOptions.Builder setBrowserUrl(java.lang.String url)
url
- Stringpublic FeedbackOptions.Builder setDefaultText(java.lang.String defaultText)
defaultText
- public FeedbackOptions.Builder setTakeScreenshotButtonVisible(boolean enabled)
enabled
- public FeedbackOptions.Builder setRecordVideoButtonVisible(boolean enabled)
enabled
- public FeedbackOptions.Builder setFeedbackInterceptor(FeedbackOptions.FeedbackInterceptor feedbackInterceptor)
feedbackInterceptor
- public FeedbackOptions.Builder setFeedbackFormFields(java.util.List<FeedbackFormField> feedbackFormFields)
feedbackFormFields
- public FeedbackOptions build()
Copyright 2022 TestFairy. All rights reserved.