Class ShadowResolveInfo

java.lang.Object
org.robolectric.shadows.ShadowResolveInfo

public class ShadowResolveInfo extends Object
Utilities for ResolveInfo.
  • Constructor Details

    • ShadowResolveInfo

      public ShadowResolveInfo()
  • Method Details

    • newResolveInfo

      public static ResolveInfo newResolveInfo(String displayName, String packageName)
      Creates a ResolveInfo.
      Parameters:
      displayName - Display name.
      packageName - Package name.
      Returns:
      Resolve info instance.
    • newResolveInfo

      public static ResolveInfo newResolveInfo(String displayName, String packageName, String activityName)
      Creates a ResolveInfo.
      Parameters:
      displayName - Display name.
      packageName - Package name.
      activityName - Activity name.
      Returns:
      Resolve info instance.
    • newResolveInfo

      public static ResolveInfo newResolveInfo(ResolveInfo orig)
      Copies ResolveInfo.

      Note that this is shallow copy as performed by the copy constructor existing in API 17.