@Implements(value=android.content.pm.SuspendDialogInfo.class, isInAndroidSdk=false, minSdk=29) public class ShadowSuspendDialogInfo extends Object
SuspendDialogInfo to expose hidden methods.| Modifier and Type | Field | Description |
|---|---|---|
protected SuspendDialogInfo |
realInfo |
| Constructor | Description |
|---|---|
ShadowSuspendDialogInfo() |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getDialogMessage() |
Returns the text to be shown in the dialog's body, or
null if getDialogMessageResId() returns a valid resource id. |
int |
getDialogMessageResId() |
Returns the resource id of the text to be shown in the dialog's body.
|
int |
getIconResId() |
Returns the resource id of the icon to be used with the dialog.
|
int |
getNeutralButtonTextResId() |
Returns the text to be shown.
|
int |
getTitleResId() |
Returns the resource id of the title to be used with the dialog.
|
@RealObject protected SuspendDialogInfo realInfo
@Implementation @HiddenApi @DrawableRes public int getIconResId()
@Implementation @HiddenApi @StringRes public int getTitleResId()
@Implementation @HiddenApi @StringRes public int getDialogMessageResId()
@Implementation @HiddenApi @Nullable public String getDialogMessage()
null if getDialogMessageResId() returns a valid resource id.@Implementation @HiddenApi @StringRes public int getNeutralButtonTextResId()