public abstract class SurveyResult
extends java.lang.Object
implements android.os.Parcelable
ISurveyDoneListener
.
Example:
ISurvey
survey = Survey.getInstance(context);ISurveyDoneListener
surveyListener = newISurveyDoneListener
() { @Override
public void onSurveyDone(SurveyResult
result) { if (result.getStatus() ==SurveyStatus
.SURVEY_RES_OK) {Log
.i(TAG, "Survey successful, rating value: " + result.getRatingValue()); // Handle result } else {Log
.e(TAG, "Survey failed, error code:" + result.getStatus()); } } }; survey.registerSurveyDoneListener(surveyListener);
Modifier and Type | Class and Description |
---|---|
static class |
SurveyResult.Builder
Builder
(internal usage).
|
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<SurveyResult> |
CREATOR |
Constructor and Description |
---|
SurveyResult() |
Modifier and Type | Method and Description |
---|---|
static SurveyResult.Builder |
builder()
Builder
(internal usage).
|
static SurveyResult |
create(SurveyStatus status,
java.lang.Integer rating) |
abstract java.lang.Integer |
getRatingValue()
Survey rating.
|
abstract SurveyStatus |
getStatus()
Survey status.
|
boolean |
isSurveyAborted()
Survey aborted by the merchant.
|
boolean |
isSurveyAnswered()
Survey answered.
|
boolean |
isSurveyCancelled()
Survey cancelled by the customer.
|
boolean |
isSurveySkipped()
Survey skipped by the customer.
|
public static final android.os.Parcelable.Creator<SurveyResult> CREATOR
public boolean isSurveyAnswered()
public boolean isSurveyAborted()
public boolean isSurveyCancelled()
public boolean isSurveySkipped()
public abstract SurveyStatus getStatus()
@Nullable public abstract java.lang.Integer getRatingValue()
public static SurveyResult.Builder builder()
public static SurveyResult create(SurveyStatus status, java.lang.Integer rating)