Class DynamicInfo
java.lang.Object
com.pranavpandey.android.dynamic.support.model.DynamicInfo
- All Implemented Interfaces:
Parcelable
A model class to hold the dynamic information which can be used by the
DynamicInfoView
.-
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<DynamicInfo>
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 permission.DynamicInfo
(Parcel in) Read an object of this class from the parcel. -
Method Summary
Modifier and TypeMethodDescriptionint
Get the description used by this info.getIcon()
Get the icon used by this info.Get the big fallback icon used by this info.getLinks()
Get the title for the links used by this info.Integer[]
Get the icon tint color for the links used by this info.int
Get the icon tint colors array resource for the links used by this info.Drawable[]
Get the icon for the links used by this info.int
Get the icons array resource for the links used by this info.Get the subtitle for the links used by this info.Get the URL for the links used by this info.Get the subtitle used by this info.getTitle()
Get the title used by this info.setDescription
(CharSequence description) Set the description for this info.Set the icon for this info.setIconBig
(Drawable iconBig) Set the big fallback icon for this info.setLinks
(CharSequence[] links) Set the title for the links used by this info.setLinksColors
(Integer[] linksColors) Set the icon tint color for the links used by this info.setLinksColorsResId
(int linksColorsResId) Set the icon tint colors array resource for the links used by this info.setLinksDrawables
(Drawable[] linksDrawables) Set the icon for the links used by this info.setLinksIconsResId
(int linksIconsResId) Set the icons array resource for the links used by this info.setLinksSubtitles
(CharSequence[] linksSubtitles) Set the subtitle for the links used by this info.setLinksUrls
(CharSequence[] linksUrls) Set the URL for the links used by this info.setSubtitle
(CharSequence subtitle) Set the subtitle for this info.setTitle
(CharSequence title) Set the title for this info.void
writeToParcel
(Parcel dest, int flags)
-
Field Details
-
CREATOR
Parcelable creator to create from parcel.
-
-
Constructor Details
-
DynamicInfo
public DynamicInfo()Default constructor to initialize the dynamic permission. -
DynamicInfo
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
-
getIcon
Get the icon used by this info.- Returns:
- The icon used by this info.
-
setIcon
Set the icon for this info.- Parameters:
icon
- The icon to be set.- Returns:
- The
DynamicInfo
object to allow for chaining of calls to set methods.
-
getIconBig
Get the big fallback icon used by this info.- Returns:
- The big fallback icon used by this info.
-
setIconBig
Set the big fallback icon for this info.- Parameters:
iconBig
- The big fallback icon to be set.- Returns:
- The
DynamicInfo
object to allow for chaining of calls to set methods.
-
getTitle
Get the title used by this info.- Returns:
- The title used by this info.
-
setTitle
Set the title for this info.- Parameters:
title
- The title to be set.- Returns:
- The
DynamicInfo
object to allow for chaining of calls to set methods.
-
getSubtitle
Get the subtitle used by this info.- Returns:
- The subtitle used by this info.
-
setSubtitle
Set the subtitle for this info.- Parameters:
subtitle
- The subtitle to be set.- Returns:
- The
DynamicInfo
object to allow for chaining of calls to set methods.
-
getDescription
Get the description used by this info.- Returns:
- The description used by this info.
-
setDescription
Set the description for this info.- Parameters:
description
- The description to be set.- Returns:
- The
DynamicInfo
object to allow for chaining of calls to set methods.
-
getLinks
Get the title for the links used by this info.- Returns:
- The title for the links used by this info.
-
setLinks
Set the title for the links used by this info.- Parameters:
links
- The titles for the links to be set.- Returns:
- The
DynamicInfo
object to allow for chaining of calls to set methods.
-
getLinksSubtitles
Get the subtitle for the links used by this info.- Returns:
- The subtitle for the links used by this info.
-
setLinksSubtitles
Set the subtitle for the links used by this info.- Parameters:
linksSubtitles
- The subtitles for the links to be set.- Returns:
- The
DynamicInfo
object to allow for chaining of calls to set methods.
-
getLinksUrls
Get the URL for the links used by this info.- Returns:
- The URL for the links used by this info.
-
setLinksUrls
Set the URL for the links used by this info.- Parameters:
linksUrls
- The urls for the links to be set.- Returns:
- The
DynamicInfo
object to allow for chaining of calls to set methods.
-
getLinksIconsResId
Get the icons array resource for the links used by this info.- Returns:
- The icons array resource for the links used by this info.
-
setLinksIconsResId
Set the icons array resource for the links used by this info.- Parameters:
linksIconsResId
- The icon drawables array resource for the links to be set.- Returns:
- The
DynamicInfo
object to allow for chaining of calls to set methods.
-
getLinksColorsResId
Get the icon tint colors array resource for the links used by this info.- Returns:
- The icon tint colors array resource for the links used by this info.
-
setLinksColorsResId
Set the icon tint colors array resource for the links used by this info.- Parameters:
linksColorsResId
- The icon tint colors array resource for the links to be set.- Returns:
- The
DynamicInfo
object to allow for chaining of calls to set methods.
-
getLinksDrawables
Get the icon for the links used by this info.- Returns:
- The icon for the links used by this info.
-
setLinksDrawables
Set the icon for the links used by this info.- Parameters:
linksDrawables
- The icon drawables for the links to be set.- Returns:
- The
DynamicInfo
object to allow for chaining of calls to set methods.
-
getLinksColors
Get the icon tint color for the links used by this info.- Returns:
- The icon tint color for the links used by this info.
-
setLinksColors
Set the icon tint color for the links used by this info.- Parameters:
linksColors
- The icon tint color for the links to be set.- Returns:
- The
DynamicInfo
object to allow for chaining of calls to set methods.
-