Package com.zendesk.sdk.feedback
Interface FeedbackConnector
-
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- ZendeskFeedbackConnector
public interface FeedbackConnector extends java.io.Serializable
Interface used to define behaviour for sending feedback of some kindThis interface is used by the
RateMyAppDialog
and theFeedbackDialog
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description boolean
isValid()
Before calling #sendFeedback(String, java.util.List, ZendeskCallback) sendFeedback} the client code should verify that it is in a usable configuration.void
sendFeedback(java.lang.String feedback, java.util.List<java.lang.String> attachments, <any> callback)
Sends feedback somewhere.
-
-
-
Method Detail
-
sendFeedback
void sendFeedback(java.lang.String feedback, java.util.List<java.lang.String> attachments, <any> callback)
Sends feedback somewhere.A concrete example of this can be seen in the
ZendeskFeedbackConnector
- Parameters:
feedback
- The feedback to send, usually entered by a user of your appattachments
- A list of attachment tokens (UploadResponse.getToken()
)callback
- The callback which can be used to gets updates on the status of the feedback sending.
-
isValid
boolean isValid()
Before calling #sendFeedback(String, java.util.List, ZendeskCallback) sendFeedback} the client code should verify that it is in a usable configuration. Connectors should return true only if they are certain of being successfully able to send feedback.This method can also be used by the
RateMyAppDialog
to determine whether or not to show thefeedback button
- Returns:
- true if the connector has valid data
-
-