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 aDialogFragmentthat allows the user to send feedback. It is designed to be used by theRateMyAppDialogcomponent.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
FeedbackConnectorinterface which is supplied in thenewInstancemethod.- 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 FeedbackDialognewInstance(FeedbackConnector connector)voidonCreate(Bundle savedInstanceState)ViewonCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)voidonDestroyView()voidsetFeedbackListener(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:
onCreatein classZendeskDialog
-
onCreateView
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
-
onDestroyView
public void onDestroyView()
-
-