Class DynamicAppInfo
java.lang.Object
com.pranavpandey.android.dynamic.engine.model.DynamicAppInfo
- All Implemented Interfaces:
Parcelable
Collection of various properties for a given package for an easy data interchange.
-
Nested Class Summary
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Parcelable.Creator<DynamicAppInfo>
Parcelable creator to create from parcel.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
ConstructorDescriptionDefault constructor to initialize the dynamic app info.DynamicAppInfo
(Parcel in) Read an object of this class from the parcel. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
equals
(DynamicAppInfo dynamicAppInfo) Compare the object of this class with another object.Get the application info.getLabel()
Get the application label or name.Get the package name.Get the top activity component name.void
setApplicationInfo
(ApplicationInfo applicationInfo) Set the application info.void
Set the application label or name.void
setPackageName
(String packageName) Set the package name.void
setTopActivity
(ComponentName topActivity) Set the top activity component name.void
writeToParcel
(Parcel dest, int flags)
-
Field Details
-
CREATOR
Parcelable creator to create from parcel.
-
-
Constructor Details
-
DynamicAppInfo
public DynamicAppInfo()Default constructor to initialize the dynamic app info. -
DynamicAppInfo
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 interfaceParcelable
-
writeToParcel
- Specified by:
writeToParcel
in interfaceParcelable
-
getApplicationInfo
Get the application info.- Returns:
- The application info.
-
setApplicationInfo
Set the application info.- Parameters:
applicationInfo
- The application info to be set.
-
getPackageName
Get the package name.- Returns:
- The package name.
-
setPackageName
Set the package name.- Parameters:
packageName
- The package name to be set.
-
getTopActivity
Get the top activity component name.- Returns:
- The top activity component name.
-
setTopActivity
Set the top activity component name.- Parameters:
topActivity
- The top activity component name to be set.
-
getLabel
Get the application label or name.- Returns:
- The application label or name.
-
setLabel
Set the application label or name.- Parameters:
label
- The application label or name to be set.
-