Package com.zendesk.sdk.rating.impl
Class RateMyAppSendFeedbackButton
- java.lang.Object
-
- com.zendesk.sdk.rating.impl.BaseRateMyAppButton
-
- com.zendesk.sdk.rating.impl.RateMyAppSendFeedbackButton
-
- All Implemented Interfaces:
- RateMyAppButton, java.io.Serializable
Deprecated.Rate My App is deprecated as of 1.10.0.1. See our open source alternative instead.
@Deprecated public class RateMyAppSendFeedbackButton extends BaseRateMyAppButton
A button definition that will open a UI for the user to enter feedback.This button will manage the lifecycle of a
FeedbackDialog. The button will also check to see if there is aRateMyAppDialogpresent and if there is it will dismiss it.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringFEEDBACK_DIALOG_TAGDeprecated.Rate My App is deprecated as of 1.10.0.1. See our open source alternative instead.
-
Constructor Summary
Constructors Constructor and Description RateMyAppSendFeedbackButton(FragmentActivity fragmentActivity, FeedbackConnector connector)Deprecated.Creates a button used to send feedback.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description intgetId()Deprecated.Gets the id that the button view will be associated with when it is created.java.lang.StringgetLabel()Deprecated.Gets the text label that will be applied to the buttonView.OnClickListenergetOnClickListener()Deprecated.Gets the click listener that will be called when the button is tapped.voidsetFeedbackListener(SubmissionListener feedbackListener)Deprecated.Sets thelistenerthat will be called when the user cancels theFeedbackDialogor uses it to send feedback.booleanshouldDismissDialog()Deprecated.Gets whether or not this button should dismiss the dialog after it has been clicked.-
Methods inherited from class com.zendesk.sdk.rating.impl.BaseRateMyAppButton
getStyleAttributeId
-
-
-
-
Field Detail
-
FEEDBACK_DIALOG_TAG
@Deprecated public static final java.lang.String FEEDBACK_DIALOG_TAG
Deprecated. Rate My App is deprecated as of 1.10.0.1. See our open source alternative instead.This is the name of the tag that will be set on theFeedbackDialogthat will be created by this button.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RateMyAppSendFeedbackButton
public RateMyAppSendFeedbackButton(FragmentActivity fragmentActivity, FeedbackConnector connector)Deprecated.Creates a button used to send feedback. This will open aFeedbackDialog- Parameters:
fragmentActivity- The fragment activity that this button use to launch the feedback dialogconnector- The connector used to send the feedback to Zendesk
-
-
Method Detail
-
getOnClickListener
public View.OnClickListener getOnClickListener()
Deprecated.Description copied from interface:RateMyAppButtonGets the click listener that will be called when the button is tapped.- Returns:
- the
android.view.View.OnClickListenerthat will be invoked for this button
-
getLabel
public java.lang.String getLabel()
Deprecated.Description copied from interface:RateMyAppButtonGets the text label that will be applied to the button- Returns:
- The string to be applied to the RateMyAppButton
-
shouldDismissDialog
public boolean shouldDismissDialog()
Deprecated.Description copied from interface:RateMyAppButtonGets whether or not this button should dismiss the dialog after it has been clicked.Normally this will be false. The only reason to set this to true would be if you were manually adding a new dialog to be shown
- Specified by:
shouldDismissDialogin interfaceRateMyAppButton- Overrides:
shouldDismissDialogin classBaseRateMyAppButton- Returns:
- true if the parent dialog should be dismissed after the button is actioned, false otherwise.
-
setFeedbackListener
public void setFeedbackListener(SubmissionListener feedbackListener)
Deprecated.Sets thelistenerthat will be called when the user cancels theFeedbackDialogor uses it to send feedback.This listener will be passed through to the dialog that this button manages. The listener in this class is just a conduit between the feedback dialog and what is usually the parent activity.
- Parameters:
feedbackListener- TheSubmissionListenerwhich will be notified when events occur during the submission of the feedback
-
getId
public int getId()
Deprecated.Description copied from interface:RateMyAppButtonGets the id that the button view will be associated with when it is created.- Specified by:
getIdin interfaceRateMyAppButton- Overrides:
getIdin classBaseRateMyAppButton- Returns:
- the id of the button
-
-