Package com.zendesk.sdk.rating.ui
Class RateMyAppDialog
- java.lang.Object
-
- DialogFragment
-
- com.zendesk.sdk.ui.ZendeskDialog
-
- com.zendesk.sdk.rating.ui.RateMyAppDialog
-
- All Implemented Interfaces:
- java.io.Serializable
Deprecated.Rate My App is deprecated as of 1.10.0.1. See our open source alternative instead.
@Deprecated public class RateMyAppDialog extends ZendeskDialog implements java.io.Serializable
This is aDialogFragmentthat will show a rate my app dialog.An instance of this dialog should be obtained using the
Builder. After you have created an instance you should use theshowmethod to show the dialog. The dialog may or may not show depending on the configuration that has been retrieved from the server.Any checking of whether the dialog can be shown happens in the
RateMyAppDialog#show(android.support.v4.app.FragmentActivity)method. This means that the number of launches is incremented when you call it and it also performs other checks such as how long the dialog must wait before becoming eligible to run.A full example of how to use the dialog is available in the "RateMyAppdialogTest" activity in the "SampleApp" project
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classRateMyAppDialog.BuilderDeprecated.Builder class used to instantiate aRateMyAppDialogstatic interfaceRateMyAppDialog.OnShowListenerDeprecated.
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringRMA_DIALOG_TAGDeprecated.
-
Constructor Summary
Constructors Constructor and Description RateMyAppDialog()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description DialogonCreateDialog(Bundle savedInstanceState)Deprecated.ViewonCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)Deprecated.voidonStart()Deprecated.voidshow(FragmentActivity fragmentActivity)Deprecated.Shows the dialog if it is eligible to be shown.voidshow(FragmentActivity fragmentActivity, boolean overrideShowDelay)Deprecated.Shows the dialog if it is eligible to be shown.voidshowAlways(FragmentActivity fragmentActivity)Deprecated.This method can be used to always show the dialog.voidtearDownDialog(FragmentManager fragmentManager)Deprecated.This method can be used to tear down the RateMyAppDialog and also theContactZendeskFragmentif it has been shown.-
Methods inherited from class com.zendesk.sdk.ui.ZendeskDialog
onCreate
-
-
-
-
Field Detail
-
RMA_DIALOG_TAG
@Deprecated public static final java.lang.String RMA_DIALOG_TAG
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
onCreateView
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)Deprecated.
-
onStart
public void onStart()
Deprecated.- Overrides:
onStartin classZendeskDialog
-
showAlways
public void showAlways(FragmentActivity fragmentActivity)
Deprecated.This method can be used to always show the dialog. This doesn't respect the settings that come from the server or whether the user has already clicked a button to not display the dialog again.- Parameters:
fragmentActivity- The FragmentActivity to which this Fragment will be attached to.
-
show
public void show(FragmentActivity fragmentActivity)
Deprecated.Shows the dialog if it is eligible to be shown.- Parameters:
fragmentActivity- The FragmentActivity to which this Fragment will be attached to.
-
show
public void show(FragmentActivity fragmentActivity, boolean overrideShowDelay)Deprecated.Shows the dialog if it is eligible to be shown.- Parameters:
fragmentActivity- The FragmentActivity to which this Fragment will be attached to. Only a WeakReference to it is retained by this method.overrideShowDelay- If true the dialog will be shown immediately if it is eligible to be shown. Otherwise the dialog will show after the configuration specified delay.
-
onCreateDialog
public Dialog onCreateDialog(Bundle savedInstanceState)
Deprecated.
-
tearDownDialog
public void tearDownDialog(FragmentManager fragmentManager)
Deprecated.This method can be used to tear down the RateMyAppDialog and also theContactZendeskFragmentif it has been shown.- Parameters:
fragmentManager- The fragment manager in which transactions will run to remove the fragments
-
-