Class DynamicAppInfo

java.lang.Object
com.pranavpandey.android.dynamic.engine.model.DynamicAppInfo
All Implemented Interfaces:
Parcelable

public class DynamicAppInfo extends Object implements Parcelable
Collection of various properties for a given package for an easy data interchange.
  • Field Details

  • Constructor Details

    • DynamicAppInfo

      public DynamicAppInfo()
      Default constructor to initialize the dynamic app info.
    • DynamicAppInfo

      public DynamicAppInfo(@NonNull Parcel in)
      Read an object of this class from the parcel.
      Parameters:
      in - The parcel to read the values.
  • Method Details

    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface Parcelable
    • writeToParcel

      public void writeToParcel(Parcel dest, int flags)
      Specified by:
      writeToParcel in interface Parcelable
    • getApplicationInfo

      @Nullable public ApplicationInfo getApplicationInfo()
      Get the application info.
      Returns:
      The application info.
    • setApplicationInfo

      public void setApplicationInfo(@Nullable ApplicationInfo applicationInfo)
      Set the application info.
      Parameters:
      applicationInfo - The application info to be set.
    • getPackageName

      @Nullable public String getPackageName()
      Get the package name.
      Returns:
      The package name.
    • setPackageName

      public void setPackageName(@Nullable String packageName)
      Set the package name.
      Parameters:
      packageName - The package name to be set.
    • getTopActivity

      @Nullable public ComponentName getTopActivity()
      Get the top activity component name.
      Returns:
      The top activity component name.
    • setTopActivity

      public void setTopActivity(@Nullable ComponentName topActivity)
      Set the top activity component name.
      Parameters:
      topActivity - The top activity component name to be set.
    • getLabel

      @Nullable public String getLabel()
      Get the application label or name.
      Returns:
      The application label or name.
    • setLabel

      public void setLabel(@Nullable String label)
      Set the application label or name.
      Parameters:
      label - The application label or name to be set.
    • equals

      public boolean equals(@NonNull DynamicAppInfo dynamicAppInfo)
      Compare the object of this class with another object.
      Parameters:
      dynamicAppInfo - The other DynamicAppInfo to compare.
      Returns:
      true if the two objects are equal.