Package com.zendesk.sdk.rating
Interface RateMyAppButton
-
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- BaseRateMyAppButton, RateMyAppDontAskAgainButton, RateMyAppSendFeedbackButton, RateMyAppStoreButton
public interface RateMyAppButton extends java.io.SerializableModels the Buttons that can be added to aRateMyAppDialog
The following attributes of a button are customisable- Style
- Label
- Action to perform when tapped
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description intgetId()Gets the id that the button view will be associated with when it is created.java.lang.StringgetLabel()Gets the text label that will be applied to the buttonView.OnClickListenergetOnClickListener()Gets the click listener that will be called when the button is tapped.intgetStyleAttributeId()Gets the attribute id that refers to the style to use.booleanshouldDismissDialog()Gets whether or not this button should dismiss the dialog after it has been clicked.
-
-
-
Method Detail
-
getLabel
java.lang.String getLabel()
Gets the text label that will be applied to the button- Returns:
- The string to be applied to the RateMyAppButton
-
getStyleAttributeId
int getStyleAttributeId()
Gets the attribute id that refers to the style to use. This should be defined in your styles.xml file as an attr element- Returns:
- the style attribute id
-
getOnClickListener
View.OnClickListener getOnClickListener()
Gets the click listener that will be called when the button is tapped.- Returns:
- the
android.view.View.OnClickListenerthat will be invoked for this button
-
getId
int getId()
Gets the id that the button view will be associated with when it is created.- Returns:
- the id of the button
-
shouldDismissDialog
boolean shouldDismissDialog()
Gets 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
- Returns:
- true if the parent dialog should be dismissed after the button is actioned, false otherwise.
-
-