Package com.zendesk.sdk.rating.ui
Class RateMyAppButtonContainer
- java.lang.Object
-
- LinearLayout
-
- com.zendesk.sdk.rating.ui.RateMyAppButtonContainer
-
public class RateMyAppButtonContainer extends LinearLayout
Defines the layout for theRateMyAppDialog
This layout container will be generated dynamically from a list of
This class is not intended to be inflated from XML.RateMyAppButton
definitions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static interface
RateMyAppButtonContainer.RateMyAppSelectionListener
This interface defines the behaviour that buttons should inform their parent when they were clicked.
-
Constructor Summary
Constructors Constructor and Description RateMyAppButtonContainer(Context context, java.util.List<RateMyAppButton> buttons)
Creates and initialises the RateMyAppDialog UI.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description 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.void
setRateMyAppSelectionListener(RateMyAppButtonContainer.RateMyAppSelectionListener selectionListener)
Sets a listener that can used to receive notifications when a button is clicked.
-
-
-
Constructor Detail
-
RateMyAppButtonContainer
public RateMyAppButtonContainer(Context context, java.util.List<RateMyAppButton> buttons)
Creates and initialises the RateMyAppDialog UI.- Parameters:
context
- A UI contextbuttons
- The list of button definitions to render in the dialog
-
-
Method Detail
-
setDismissableListener
public 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.
-
setRateMyAppSelectionListener
public 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.
-
-