Class ShadowSuspendDialogInfo


  • @Implements(value=android.content.pm.SuspendDialogInfo.class,
                isInAndroidSdk=false,
                minSdk=29)
    public class ShadowSuspendDialogInfo
    extends java.lang.Object
    Shadow of SuspendDialogInfo to expose hidden methods.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected android.content.pm.SuspendDialogInfo realInfo  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • realInfo

        @RealObject
        protected android.content.pm.SuspendDialogInfo realInfo
    • Constructor Detail

      • ShadowSuspendDialogInfo

        public ShadowSuspendDialogInfo()
    • Method Detail

      • 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 java.lang.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.