java.lang.Object
com.pranavpandey.android.dynamic.support.model.DynamicInfo
All Implemented Interfaces:
Parcelable

public class DynamicInfo extends Object implements Parcelable
A model class to hold the dynamic information which can be used by the DynamicInfoView.
  • Field Details

  • Constructor Details

    • DynamicInfo

      public DynamicInfo()
      Default constructor to initialize the dynamic permission.
    • DynamicInfo

      public DynamicInfo(@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
    • getIcon

      @Nullable public Drawable getIcon()
      Get the icon used by this info.
      Returns:
      The icon used by this info.
    • setIcon

      @NonNull public DynamicInfo setIcon(@Nullable Drawable icon)
      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

      @Nullable public Drawable getIconBig()
      Get the big fallback icon used by this info.
      Returns:
      The big fallback icon used by this info.
    • setIconBig

      @NonNull public DynamicInfo setIconBig(@Nullable Drawable iconBig)
      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

      @Nullable public CharSequence getTitle()
      Get the title used by this info.
      Returns:
      The title used by this info.
    • setTitle

      @NonNull public DynamicInfo setTitle(@Nullable CharSequence title)
      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

      @Nullable public CharSequence getSubtitle()
      Get the subtitle used by this info.
      Returns:
      The subtitle used by this info.
    • setSubtitle

      @NonNull public DynamicInfo setSubtitle(@Nullable CharSequence subtitle)
      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

      @Nullable public CharSequence getDescription()
      Get the description used by this info.
      Returns:
      The description used by this info.
    • setDescription

      @NonNull public DynamicInfo setDescription(@Nullable CharSequence description)
      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

      @Nullable public CharSequence[] getLinks()
      Get the title for the links used by this info.
      Returns:
      The title for the links used by this info.
    • setLinks

      @NonNull public DynamicInfo setLinks(@Nullable CharSequence[] links)
      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

      @Nullable public CharSequence[] getLinksSubtitles()
      Get the subtitle for the links used by this info.
      Returns:
      The subtitle for the links used by this info.
    • setLinksSubtitles

      @NonNull public DynamicInfo setLinksSubtitles(@Nullable CharSequence[] linksSubtitles)
      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

      @Nullable public CharSequence[] getLinksUrls()
      Get the URL for the links used by this info.
      Returns:
      The URL for the links used by this info.
    • setLinksUrls

      @NonNull public DynamicInfo setLinksUrls(@Nullable CharSequence[] linksUrls)
      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

      @ArrayRes public int 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

      @NonNull public DynamicInfo setLinksIconsResId(@ArrayRes int linksIconsResId)
      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

      @ArrayRes public int 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

      @NonNull public DynamicInfo setLinksColorsResId(@ArrayRes int linksColorsResId)
      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

      @Nullable public Drawable[] getLinksDrawables()
      Get the icon for the links used by this info.
      Returns:
      The icon for the links used by this info.
    • setLinksDrawables

      @NonNull public DynamicInfo setLinksDrawables(@Nullable Drawable[] linksDrawables)
      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

      @Nullable public Integer[] 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

      @NonNull public DynamicInfo setLinksColors(@Nullable Integer[] linksColors)
      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.