Package com.zendesk.sdk.rating.impl
Class BaseRateMyAppButton
- java.lang.Object
-
- com.zendesk.sdk.rating.impl.BaseRateMyAppButton
-
- All Implemented Interfaces:
- RateMyAppButton, java.io.Serializable
- Direct Known Subclasses:
- RateMyAppDontAskAgainButton, RateMyAppSendFeedbackButton, RateMyAppStoreButton
public abstract class BaseRateMyAppButton extends java.lang.Object implements RateMyAppButton
Applies the shared style attribute for RateMyAppButton- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description BaseRateMyAppButton()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
getId()
Gets the id that the button view will be associated with when it is created.int
getStyleAttributeId()
Gets the attribute id that refers to the style to use.boolean
shouldDismissDialog()
Gets whether or not this button should dismiss the dialog after it has been clicked.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.zendesk.sdk.rating.RateMyAppButton
getLabel, getOnClickListener
-
-
-
-
Method Detail
-
getStyleAttributeId
public int getStyleAttributeId()
Description copied from interface:RateMyAppButton
Gets the attribute id that refers to the style to use. This should be defined in your styles.xml file as an attr element- Specified by:
getStyleAttributeId
in interfaceRateMyAppButton
- Returns:
- the style attribute id
-
getId
public int getId()
Description copied from interface:RateMyAppButton
Gets the id that the button view will be associated with when it is created.- Specified by:
getId
in interfaceRateMyAppButton
- Returns:
- the id of the button
-
shouldDismissDialog
public boolean shouldDismissDialog()
Description copied from interface:RateMyAppButton
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
- Specified by:
shouldDismissDialog
in interfaceRateMyAppButton
- Returns:
- true if the parent dialog should be dismissed after the button is actioned, false otherwise.
-
-