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 Details

  • Constructor Details

    • ShadowSuspendDialogInfo

      public ShadowSuspendDialogInfo()
  • Method Details

    • getIconResId

      @Implementation @HiddenApi @DrawableRes public int getIconResId()
      Returns the resource id of the icon to be used with the dialog.
    • getTitleResId

      @Implementation @HiddenApi @StringRes public int getTitleResId()
      Returns the resource id of the title to be used with the dialog.
    • getDialogMessageResId

      @Implementation @HiddenApi @StringRes public int getDialogMessageResId()
      Returns the resource id of the text to be shown in the dialog's body.
    • getDialogMessage

      @Implementation @HiddenApi @Nullable public String getDialogMessage()
      Returns the text to be shown in the dialog's body, or null if getDialogMessageResId() returns a valid resource id.
    • getNeutralButtonTextResId

      @Implementation @HiddenApi @StringRes public int getNeutralButtonTextResId()
      Returns the text to be shown.
    • getNeutralButtonAction

      @Implementation(minSdk=30) public int getNeutralButtonAction()
      Returns the action expected to happen on neutral button tap.
      Returns:
      invalid reference
      SuspendDialogInfo.BUTTON_ACTION_MORE_DETAILS
      or
      invalid reference
      SuspendDialogInfo.BUTTON_ACTION_UNSUSPEND