-
- All Implemented Interfaces:
-
android.os.Parcelable
public class CTInboxStyleConfig implements Parcelable
This class has all the parameters required to configure the styling of your CTInboxActivity All the setter methods are public and the object of this class is made immutable by CleverTapAPI
-
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<CTInboxStyleConfig>CREATORprivate StringbackButtonColorprivate StringfirstTabTitleprivate StringinboxBackgroundColorprivate StringnavBarColorprivate StringnavBarTitleprivate StringnavBarTitleColorprivate StringnoMessageViewTextprivate StringnoMessageViewTextColorprivate StringselectedTabColorprivate StringselectedTabIndicatorColorprivate StringtabBackgroundColorprivate Array<String>tabsprivate StringunselectedTabColor
-
Constructor Summary
Constructors Constructor Description CTInboxStyleConfig()
-
Method Summary
Modifier and Type Method Description StringgetBackButtonColor()voidsetBackButtonColor(String backButtonColor)Sets the color of the back button on the top navigation toolbar StringgetFirstTabTitle()voidsetFirstTabTitle(String title)Sets the title of the first tab of the App Inbox StringgetInboxBackgroundColor()voidsetInboxBackgroundColor(String inboxBackgroundColor)Sets the background color for the entire inbox StringgetNavBarColor()voidsetNavBarColor(String navBarColor)Sets the color for the top navigation toolbar StringgetNavBarTitle()voidsetNavBarTitle(String navBarTitle)Sets the text for the top navigation toolbar StringgetNavBarTitleColor()voidsetNavBarTitleColor(String navBarTitleColor)Sets the color for the title in the top navigation toolbar StringgetNoMessageViewText()voidsetNoMessageViewText(String noMessageViewText)Sets the text for when there are no messages in the App Inbox StringgetNoMessageViewTextColor()voidsetNoMessageViewTextColor(String noMessageViewTextColor)Sets the color of the text for when there are no messages in the App Inbox StringgetSelectedTabColor()voidsetSelectedTabColor(String selectedTabColor)Sets the color of the selected tab StringgetSelectedTabIndicatorColor()voidsetSelectedTabIndicatorColor(String selectedTabIndicatorColor)Sets the color of the indicator of the selected tab StringgetTabBackgroundColor()voidsetTabBackgroundColor(String tabBackgroundColor)Sets the background color for the tabs voidsetTabs(ArrayList<String> tabs)Sets the name of the optional two tabs.The contents of the tabs are filtered based on the name of the tab. StringgetUnselectedTabColor()voidsetUnselectedTabColor(String unselectedTabColor)Sets the color of the unselected tab intdescribeContents()booleanisUsingTabs()voidwriteToParcel(Parcel dest, int flags)-
-
Method Detail
-
getBackButtonColor
String getBackButtonColor()
-
setBackButtonColor
void setBackButtonColor(String backButtonColor)
Sets the color of the back button on the top navigation toolbar
- Parameters:
backButtonColor- String - hexcode of the color
-
getFirstTabTitle
String getFirstTabTitle()
-
setFirstTabTitle
void setFirstTabTitle(String title)
Sets the title of the first tab of the App Inbox
- Parameters:
title- String - title of the first tab
-
getInboxBackgroundColor
String getInboxBackgroundColor()
-
setInboxBackgroundColor
void setInboxBackgroundColor(String inboxBackgroundColor)
Sets the background color for the entire inbox
- Parameters:
inboxBackgroundColor- - String - hexcode of the color
-
getNavBarColor
String getNavBarColor()
-
setNavBarColor
void setNavBarColor(String navBarColor)
Sets the color for the top navigation toolbar
- Parameters:
navBarColor- String - hexcode of the color
-
getNavBarTitle
String getNavBarTitle()
-
setNavBarTitle
void setNavBarTitle(String navBarTitle)
Sets the text for the top navigation toolbar
- Parameters:
navBarTitle- String
-
getNavBarTitleColor
String getNavBarTitleColor()
-
setNavBarTitleColor
void setNavBarTitleColor(String navBarTitleColor)
Sets the color for the title in the top navigation toolbar
- Parameters:
navBarTitleColor- String - hexcode of the color
-
getNoMessageViewText
String getNoMessageViewText()
-
setNoMessageViewText
void setNoMessageViewText(String noMessageViewText)
Sets the text for when there are no messages in the App Inbox
- Parameters:
noMessageViewText- String
-
getNoMessageViewTextColor
String getNoMessageViewTextColor()
-
setNoMessageViewTextColor
void setNoMessageViewTextColor(String noMessageViewTextColor)
Sets the color of the text for when there are no messages in the App Inbox
- Parameters:
noMessageViewTextColor- String - hexcode of the color
-
getSelectedTabColor
String getSelectedTabColor()
-
setSelectedTabColor
void setSelectedTabColor(String selectedTabColor)
Sets the color of the selected tab
- Parameters:
selectedTabColor- String - hexcode of the color
-
getSelectedTabIndicatorColor
String getSelectedTabIndicatorColor()
-
setSelectedTabIndicatorColor
void setSelectedTabIndicatorColor(String selectedTabIndicatorColor)
Sets the color of the indicator of the selected tab
- Parameters:
selectedTabIndicatorColor- String - hexcode of the color
-
getTabBackgroundColor
String getTabBackgroundColor()
-
setTabBackgroundColor
void setTabBackgroundColor(String tabBackgroundColor)
Sets the background color for the tabs
- Parameters:
tabBackgroundColor- String - hexcode of the color
-
setTabs
void setTabs(ArrayList<String> tabs)
Sets the name of the optional two tabs.The contents of the tabs are filtered based on the name of the tab.
- Parameters:
tabs- ArrayList of Strings
-
getUnselectedTabColor
String getUnselectedTabColor()
-
setUnselectedTabColor
void setUnselectedTabColor(String unselectedTabColor)
Sets the color of the unselected tab
- Parameters:
unselectedTabColor- String - hexcode of the color
-
describeContents
int describeContents()
-
isUsingTabs
boolean isUsingTabs()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
-
-
-