Class ShadowDialog

java.lang.Object
org.robolectric.shadows.ShadowDialog
Direct Known Subclasses:
ShadowAlertDialog

@Implements(android.app.Dialog.class) public class ShadowDialog extends Object
  • Field Details

  • Constructor Details

    • ShadowDialog

      public ShadowDialog()
  • Method Details

    • reset

      @Resetter public static void reset()
    • getLatestDialog

      public static Dialog getLatestDialog()
    • setLatestDialog

      public static void setLatestDialog(ShadowDialog dialog)
    • show

      @Implementation protected void show()
    • dismiss

      @Implementation protected void dismiss()
    • clickOn

      public void clickOn(int viewId)
    • setCanceledOnTouchOutside

      @Implementation protected void setCanceledOnTouchOutside(boolean flag)
    • isCancelable

      public boolean isCancelable()
    • isCancelableOnTouchOutside

      public boolean isCancelableOnTouchOutside()
    • getOnCancelListener

      public DialogInterface.OnCancelListener getOnCancelListener()
    • setOnCancelListener

      @Implementation protected void setOnCancelListener(DialogInterface.OnCancelListener listener)
    • hasBeenDismissed

      public boolean hasBeenDismissed()
    • getTitle

      public CharSequence getTitle()
    • clickOnText

      public void clickOnText(int textId)
    • clickOnText

      public void clickOnText(String text)
    • getShownDialogs

      public static List<Dialog> getShownDialogs()
    • callOnCreate

      public void callOnCreate(Bundle bundle)