Package com.zendesk.sdk.rating.ui
Class FeedbackDialog
- java.lang.Object
-
- DialogFragment
-
- com.zendesk.sdk.ui.ZendeskDialog
-
- com.zendesk.sdk.rating.ui.FeedbackDialog
-
- All Implemented Interfaces:
- java.io.Serializable
public class FeedbackDialog extends ZendeskDialog
This is aDialogFragment
that allows the user to send feedback. It is designed to be used by theRateMyAppDialog
component.The dialog contains a text entry area, a cancel button and a send button and the layout is defined by fragment_send_feedback.xml
The text entry area controls the state of the send button. If there is no text entered it will be disabled and if there is at least one character it will be enabled.
Feedback will be sent using an implementation of the
FeedbackConnector
interface which is supplied in thenewInstance
method.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description FeedbackDialog()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static FeedbackDialog
newInstance(FeedbackConnector connector)
void
onCreate(Bundle savedInstanceState)
View
onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
void
onDestroyView()
void
setFeedbackListener(SubmissionListener feedbackListener)
-
Methods inherited from class com.zendesk.sdk.ui.ZendeskDialog
onStart
-
-
-
-
Method Detail
-
setFeedbackListener
public void setFeedbackListener(SubmissionListener feedbackListener)
-
newInstance
public static FeedbackDialog newInstance(FeedbackConnector connector)
-
onCreate
public void onCreate(Bundle savedInstanceState)
- Overrides:
onCreate
in classZendeskDialog
-
onCreateView
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
-
onDestroyView
public void onDestroyView()
-
-