Class RateMyAppDialog.Builder
- java.lang.Object
- 
- com.zendesk.sdk.rating.ui.RateMyAppDialog.Builder
 
- 
- Enclosing class:
- RateMyAppDialog
 
 
 public static class RateMyAppDialog.Builder extends java.lang.ObjectBuilder class used to instantiate aRateMyAppDialogButtons should be added in the order that you want them to display. 
- 
- 
Constructor SummaryConstructors Constructor and Description Builder(FragmentActivity activity)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method and Description RateMyAppDialogbuild()Creates the instance ofRateMyAppDialogRateMyAppDialog.BuilderwithAndroidStoreRatingButton()Adds a button which will link to an android store when tapped.RateMyAppDialog.BuilderwithButton(RateMyAppButton button)Adds a button which conforms to theRateMyAppButtoninterfaceRateMyAppDialog.BuilderwithDontRemindMeAgainButton()Adds a button which will dismiss the dialog and never show it again.RateMyAppDialog.BuilderwithOnShowListener(RateMyAppDialog.OnShowListener onShowListener)Includes anRateMyAppDialog.OnShowListenerwhich can be used to determine when the dialog has shownRateMyAppDialog.BuilderwithRules(RateMyAppRule... rules)Specifies one or more rules which will govern when theRateMyAppDialogis permitted to show.RateMyAppDialog.BuilderwithSelectionListener(RateMyAppButtonContainer.RateMyAppSelectionListener selectionListener)Includes aRateMyAppButtonContainer.RateMyAppSelectionListenerwhich can be used to subscribe to button click events.RateMyAppDialog.BuilderwithSendFeedbackButton()Adds a button which will open a UI where the user can enter feedback.RateMyAppDialog.BuilderwithSendFeedbackButton(ZendeskFeedbackConfiguration feedbackConfiguration)Adds a button which will open a UI where the user can enter feedback.RateMyAppDialog.BuilderwithSendFeedbackButton(ZendeskFeedbackConfiguration feedbackConfiguration, SubmissionListener listener)Adds a button which will open a UI where the user can enter feedback.
 
- 
- 
- 
Method Detail- 
withButtonpublic RateMyAppDialog.Builder withButton(RateMyAppButton button) Adds a button which conforms to theRateMyAppButtoninterfaceNote that if the button or the activity supplied in the builder is null then no button will be added. - Parameters:
- button- The button to add
- Returns:
- the builder
 
 - 
withAndroidStoreRatingButtonpublic RateMyAppDialog.Builder withAndroidStoreRatingButton() Adds a button which will link to an android store when tapped.Note that if the activity supplied in the builder is null then no button will be added. It will also not be added if the server settings did not supply a store URL. As the android store url will be supplied by the server this could link to Google Play, Amazon etc. - Returns:
- the builder
 
 - 
withDontRemindMeAgainButtonpublic RateMyAppDialog.Builder withDontRemindMeAgainButton() Adds a button which will dismiss the dialog and never show it again.Note that if the activity supplied in the builder is null then no button will be added. - Returns:
- the builder
 
 - 
withSendFeedbackButtonpublic RateMyAppDialog.Builder withSendFeedbackButton() Adds a button which will open a UI where the user can enter feedback.- Returns:
- the builder
 
 - 
withSendFeedbackButtonpublic RateMyAppDialog.Builder withSendFeedbackButton(ZendeskFeedbackConfiguration feedbackConfiguration) Adds a button which will open a UI where the user can enter feedback.This overload allows additional configuration to be supplied, which will enhance the feedback. - Parameters:
- feedbackConfiguration- instance of- ZendeskFeedbackConfigurationused to control the content of the feedback that is sent to Zendesk
- Returns:
- the builder
 
 - 
withSendFeedbackButtonpublic RateMyAppDialog.Builder withSendFeedbackButton(ZendeskFeedbackConfiguration feedbackConfiguration, SubmissionListener listener) Adds a button which will open a UI where the user can enter feedback.This method also allows you to specify a callback to tell when the user has cancelled the feedback dialog and to know when the feedback has been sent. Note that the button will not be added if the FeedbackConnectoris null or in an invalid state.- Parameters:
- feedbackConfiguration- instance of- ZendeskFeedbackConfigurationused to control the content of the feedback that is sent to Zendesk
- listener- The listener that will be called when the user cancels the dialog or sends feedback. Can also be used to determine other submission lifecycle events
- Returns:
- the builder
 
 - 
withSelectionListenerpublic RateMyAppDialog.Builder withSelectionListener(RateMyAppButtonContainer.RateMyAppSelectionListener selectionListener) Includes aRateMyAppButtonContainer.RateMyAppSelectionListenerwhich can be used to subscribe to button click events. This can be useful for tracking button clicks.- Parameters:
- selectionListener- The selection listener which the events will be sent to.
- Returns:
- the builder
 
 - 
withOnShowListenerpublic RateMyAppDialog.Builder withOnShowListener(RateMyAppDialog.OnShowListener onShowListener) Includes anRateMyAppDialog.OnShowListenerwhich can be used to determine when the dialog has shown- Parameters:
- onShowListener- The listener which will receive the event
- Returns:
- the builder
 
 - 
withRulespublic RateMyAppDialog.Builder withRules(RateMyAppRule... rules) Specifies one or more rules which will govern when theRateMyAppDialogis permitted to show.A default set of rules will be applied if you don't specify any rules here - Parameters:
- rules- one or more- RateMyAppRules
- Returns:
- the builder
 
 - 
buildpublic RateMyAppDialog build() Creates the instance ofRateMyAppDialog- Returns:
- an instance of the dialog
 
 
- 
 
-