@Implements(value=android.app.AlertDialog.class) public class ShadowAlertDialog extends ShadowDialog
AlertDialog.| Modifier and Type | Class and Description |
|---|---|
static class |
ShadowAlertDialog.ShadowBuilder
Shadow for
android.app.AlertDialog.Builder. |
title| Constructor and Description |
|---|
ShadowAlertDialog() |
| Modifier and Type | Method and Description |
|---|---|
void |
clickOnItem(int index)
Simulates a click on the
Dialog item indicated by index. |
android.widget.Adapter |
getAdapter() |
android.view.View |
getCustomTitleView()
Non-Android accessor.
|
android.widget.FrameLayout |
getCustomView() |
CharSequence[] |
getItems()
Non-Android accessor.
|
static android.app.AlertDialog |
getLatestAlertDialog()
Non-Android accessor.
|
CharSequence |
getMessage()
Non-Android accessor.
|
ShadowAlertController |
getShadowAlertController() |
CharSequence |
getTitle() |
android.view.View |
getView()
Non-Android accessor.
|
static void |
reset()
Resets the tracking of the most recently created
AlertDialog |
void |
show() |
callOnCreate, clickOn, clickOnText, clickOnText, dismiss, getLatestDialog, getOnCancelListener, getShownDialogs, hasBeenDismissed, isCancelable, isCancelableOnTouchOutside, setCanceledOnTouchOutside, setLatestDialog, setOnCancelListenerpublic static android.app.AlertDialog getLatestAlertDialog()
AlertDialog, or null if none has been created during this test runpublic android.widget.FrameLayout getCustomView()
public static void reset()
AlertDialogpublic void clickOnItem(int index)
Dialog item indicated by index. Handles both multi- and single-choice dialogs, tracks which items are currently
checked and calls listeners appropriately.index - the index of the item to click onpublic CharSequence getTitle()
getTitle in class ShadowDialogpublic CharSequence[] getItems()
public android.widget.Adapter getAdapter()
public CharSequence getMessage()
@Implementation public void show()
show in class ShadowDialogpublic android.view.View getView()
AlertDialog.Builder#setView(View)public android.view.View getCustomTitleView()
AlertDialog.Builder#setCustomTitle(View)public ShadowAlertController getShadowAlertController()
Copyright © 2016. All rights reserved.