Package org.robolectric.shadows
Class ShadowSuspendDialogInfo
java.lang.Object
org.robolectric.shadows.ShadowSuspendDialogInfo
@Implements(value=android.content.pm.SuspendDialogInfo.class,
isInAndroidSdk=false,
minSdk=29)
public class ShadowSuspendDialogInfo
extends Object
Shadow of
SuspendDialogInfo
to expose hidden methods.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the text to be shown in the dialog's body, ornull
ifgetDialogMessageResId()
returns a valid resource id.int
Returns the resource id of the text to be shown in the dialog's body.int
Returns the resource id of the icon to be used with the dialog.int
Returns the action expected to happen on neutral button tap.int
Returns the text to be shown.int
Returns the resource id of the title to be used with the dialog.
-
Field Details
-
realInfo
-
-
Constructor Details
-
ShadowSuspendDialogInfo
public ShadowSuspendDialogInfo()
-
-
Method Details
-
getIconResId
Returns the resource id of the icon to be used with the dialog. -
getTitleResId
Returns the resource id of the title to be used with the dialog. -
getDialogMessageResId
Returns the resource id of the text to be shown in the dialog's body. -
getDialogMessage
Returns the text to be shown in the dialog's body, ornull
ifgetDialogMessageResId()
returns a valid resource id. -
getNeutralButtonTextResId
Returns the text to be shown. -
getNeutralButtonAction
Returns the action expected to happen on neutral button tap.- Returns:
SuspendDialogInfo.BUTTON_ACTION_MORE_DETAILS
orSuspendDialogInfo.BUTTON_ACTION_UNSUSPEND
-