예제 #1
0
        //show Inbox Screen
        private void showInbox()
        {
            IList <string> tabs = new List <string>();

            tabs.Add("Promotions");
            tabs.Add("Offers");
            tabs.Add("Others");//We support upto 2 tabs only. Additional tabs will be ignored

            CTInboxStyleConfig styleConfig = new CTInboxStyleConfig();

            styleConfig.Tabs = tabs;                           //Do not use this if you don't want to use tabs
            styleConfig.TabBackgroundColor        = "#FF0000"; //provide Hex code in string ONLY
            styleConfig.SelectedTabIndicatorColor = "#0000FF";
            styleConfig.SelectedTabColor          = "#000000";
            styleConfig.UnselectedTabColor        = "#FFFFFF";
            styleConfig.BackButtonColor           = "#FF0000";
            styleConfig.NavBarTitleColor          = "#FF0000";
            styleConfig.NavBarTitle          = "MY INBOX";
            styleConfig.NavBarColor          = "#FFFFFF";
            styleConfig.InboxBackgroundColor = "#00FF00";

            cleverTapAPI.ShowAppInbox(styleConfig); //Opens activity with Tabs
            //OR
            //cleverTapAPI.ShowAppInbox();//Opens Activity with default style config
        }
예제 #2
0
        private void FabOnClick(object sender, EventArgs eventArgs)
        {
            View view = (View)sender;

            Snackbar.Make(view, "Replace with your own action", Snackbar.LengthLong)
            .SetAction("Action", (Android.Views.View.IOnClickListener)null).Show();
            cleverTapAPI.ShowAppInbox();
        }