Package com.zendesk.sdk.rating.ui
Class RateMyAppButtonContainer
- java.lang.Object
- 
- LinearLayout
- 
- com.zendesk.sdk.rating.ui.RateMyAppButtonContainer
 
 
- 
 
 public class RateMyAppButtonContainer extends LinearLayoutDefines the layout for theRateMyAppDialogThis layout container will be generated dynamically from a list of This class is not intended to be inflated from XML.RateMyAppButtondefinitions.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class and Description static interfaceRateMyAppButtonContainer.RateMyAppSelectionListenerThis interface defines the behaviour that buttons should inform their parent when they were clicked.
 - 
Constructor SummaryConstructors Constructor and Description RateMyAppButtonContainer(Context context, java.util.List<RateMyAppButton> buttons)Creates and initialises the RateMyAppDialog UI.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidsetDismissableListener(com.zendesk.sdk.rating.ui.RateMyAppButtonContainer.DismissableListener dismissableListener)Sets a listener that can be used to receive a notification of when a button is clicked that should dismiss the parent dialog.voidsetRateMyAppSelectionListener(RateMyAppButtonContainer.RateMyAppSelectionListener selectionListener)Sets a listener that can used to receive notifications when a button is clicked.
 
- 
- 
- 
Constructor Detail- 
RateMyAppButtonContainerpublic RateMyAppButtonContainer(Context context, java.util.List<RateMyAppButton> buttons)Creates and initialises the RateMyAppDialog UI.- Parameters:
- context- A UI context
- buttons- The list of button definitions to render in the dialog
 
 
- 
 - 
Method Detail- 
setDismissableListenerpublic void setDismissableListener(com.zendesk.sdk.rating.ui.RateMyAppButtonContainer.DismissableListener dismissableListener) Sets a listener that can be used to receive a notification of when a button is clicked that should dismiss the parent dialog.- Parameters:
- dismissableListener- The listener in which to receive the events that informs the dialog that it should dismiss.
 
 - 
setRateMyAppSelectionListenerpublic void setRateMyAppSelectionListener(RateMyAppButtonContainer.RateMyAppSelectionListener selectionListener) Sets a listener that can used to receive notifications when a button is clicked. This can be useful to track events and propagate them to analytics.- Parameters:
- selectionListener- The listener in which to receive events that informs the subscriber which button was clicked.
 
 
- 
 
-