public virtual SrnRichNotification createRichNoti()
		{
			SrnRichNotification noti = new SrnRichNotification(mContext);
			noti.setReadout("New Book notification from Bookify", "Kate Daniels New Album Magic Breaks is released");

			noti.PrimaryTemplate = SrnMediumHeaderTemplate;

			noti.SecondaryTemplate = MediumSecondaryTemplate;
			try
			{
			noti.addActionsWithPermissionCheck(Actions);
			}
			catch (Exception e)
			{
			  Console.WriteLine(e.ToString());
			  Console.Write(e.StackTrace);
			}
			noti.AlertType = SrnRichNotification.AlertType.SOUND_AND_VIBRATION;

			Bitmap appIconBitmap = BitmapFactory.decodeResource(mContext.Resources, R.drawable.uber_icon);
			SrnImageAsset appIcon = new SrnImageAsset(mContext, "app_icon", appIconBitmap);
			noti.Icon = appIcon;

			noti.Title = "Bookify";

			return noti;
		}
Beispiel #2
0
        public virtual SrnRichNotification createRichNoti()
        {
            SrnRichNotification noti = new SrnRichNotification(mContext);

            noti.setReadout("New Book notification from Bookify", "Kate Daniels New Album Magic Breaks is released");

            noti.PrimaryTemplate = SrnMediumHeaderTemplate;

            noti.SecondaryTemplate = MediumSecondaryTemplate;
            try
            {
                noti.addActionsWithPermissionCheck(Actions);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
                Console.Write(e.StackTrace);
            }
            noti.AlertType = SrnRichNotification.AlertType.SOUND_AND_VIBRATION;

            Bitmap        appIconBitmap = BitmapFactory.decodeResource(mContext.Resources, R.drawable.uber_icon);
            SrnImageAsset appIcon       = new SrnImageAsset(mContext, "app_icon", appIconBitmap);

            noti.Icon = appIcon;

            noti.Title = "Bookify";

            return(noti);
        }
        public virtual SrnRichNotification createRichNoti()
        {
            SrnRichNotification noti = new SrnRichNotification(mContext);

            noti.setReadout("Facebook post", "Your friend post, nice weather in SFO");

            noti.PrimaryTemplate = SrnLargeHeaderTemplate;

            noti.SecondaryTemplate = SmallSecondaryTemplate;
            try
            {
                noti.addActionsWithPermissionCheck(Actions);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
                Console.Write(e.StackTrace);
            }
            noti.AlertType = SrnRichNotification.AlertType.SILENCE;

            Bitmap        appIconBitmap = BitmapFactory.decodeResource(mContext.Resources, R.drawable.uber_icon);
            SrnImageAsset appIcon       = new SrnImageAsset(mContext, "app_icon", appIconBitmap);

            noti.Icon = appIcon;

            noti.Title = "Nice Weather";

            return(noti);
        }
		public virtual SrnRichNotification createRichNoti()
		{
			SrnRichNotification noti = new SrnRichNotification(context);
			noti.setReadout("New Full Header", "FullScreen.");

			noti.PrimaryTemplate = FullScreenTemplate;

			noti.SecondaryTemplate = FullSecondaryTemplate;
			try
			{
			noti.addActionsWithPermissionCheck(Actions);
			}
			catch (Exception e)
			{
			  Console.WriteLine(e.ToString());
			  Console.Write(e.StackTrace);
			}
			noti.AlertType = SrnRichNotification.AlertType.SOUND;

			Bitmap appIconBitmap = BitmapFactory.decodeResource(context.Resources, R.drawable.uber_icon);
			SrnImageAsset appIcon = new SrnImageAsset(context, "app_icon", appIconBitmap);
			noti.Icon = appIcon;

			noti.Title = "Movify";

			return noti;
		}
Beispiel #5
0
        public virtual SrnRichNotification createRichNoti()
        {
            SrnRichNotification noti = new SrnRichNotification(mContext);

            noti.setReadout("New Event", "Today there is an event.");

            Bitmap        appIconBitmap = BitmapFactory.decodeResource(mContext.Resources, R.drawable.uber_icon);
            SrnImageAsset appIcon       = new SrnImageAsset(mContext, "app_icon", appIconBitmap);

            noti.Icon = appIcon;

            noti.Title = "Eventify";

            noti.PrimaryTemplate = EventTemplate;

            noti.SecondaryTemplate = EventSecondaryTemplate;
            try
            {
                noti.addActionsWithPermissionCheck(Actions);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
                Console.Write(e.StackTrace);
            }
            noti.setAlertType(SrnRichNotification.AlertType.SOUND_AND_VIBRATION, SrnRichNotification.PopupType.NORMAL);

            return(noti);
        }
		public virtual SrnRichNotification createRichNoti()
		{
			SrnRichNotification noti = new SrnRichNotification(mContext);

			noti.setReadout("New Event", "Today there is an event.");

			Bitmap appIconBitmap = BitmapFactory.decodeResource(mContext.Resources, R.drawable.uber_icon);
			SrnImageAsset appIcon = new SrnImageAsset(mContext, "app_icon", appIconBitmap);
			noti.Icon = appIcon;

			noti.Title = "Eventify";

			noti.PrimaryTemplate = EventTemplate;

			noti.SecondaryTemplate = EventSecondaryTemplate;
			try
			{
			noti.addActionsWithPermissionCheck(Actions);
			}
			catch (Exception e)
			{
			  Console.WriteLine(e.ToString());
			  Console.Write(e.StackTrace);
			}
			noti.setAlertType(SrnRichNotification.AlertType.SOUND_AND_VIBRATION, SrnRichNotification.PopupType.NORMAL);

			return noti;
		}
		public virtual SrnRichNotification createRichNoti()
		{
			SrnRichNotification noti = new SrnRichNotification(mContext);
			noti.setReadout("New Album notification from Songify", "Taylor Swift New Album Red is released");
			noti.PrimaryTemplate = SmallHeaderTemplate;

			noti.SecondaryTemplate = SmallSecondaryTemplate;

			noti.Title = "Songify";
			try
			{
				noti.addActionsWithPermissionCheck(Actions);
			}
			catch (Exception e)
			{
				  Console.WriteLine(e.ToString());
				  Console.Write(e.StackTrace);
			}
			noti.AlertType = SrnRichNotification.AlertType.VIBRATION;

			//        Bitmap appIconBitmap = BitmapFactory.decodeResource(mContext.getResources(),
			//                R.drawable.uber_icon);
			//        SrnImageAsset appIcon = new SrnImageAsset(mContext, "app_icon", appIconBitmap);
			//        noti.setIcon(appIcon);

			return noti;
		}
Beispiel #8
0
        public virtual SrnRichNotification createRichNoti()
        {
            SrnRichNotification noti = new SrnRichNotification(mContext);

            noti.setReadout("New Album notification from Songify", "Taylor Swift New Album Red is released");
            noti.PrimaryTemplate = SmallHeaderTemplate;

            noti.SecondaryTemplate = SmallSecondaryTemplate;

            noti.Title = "Songify";
            try
            {
                noti.addActionsWithPermissionCheck(Actions);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
                Console.Write(e.StackTrace);
            }
            noti.AlertType = SrnRichNotification.AlertType.VIBRATION;

            //        Bitmap appIconBitmap = BitmapFactory.decodeResource(mContext.getResources(),
            //                R.drawable.uber_icon);
            //        SrnImageAsset appIcon = new SrnImageAsset(mContext, "app_icon", appIconBitmap);
            //        noti.setIcon(appIcon);

            return(noti);
        }
Beispiel #9
0
        public virtual SrnRichNotification createRichNoti()
        {
            SrnRichNotification noti = new SrnRichNotification(context);

            noti.setReadout("New Full Header", "FullScreen.");

            noti.PrimaryTemplate = FullScreenTemplate;

            noti.SecondaryTemplate = FullSecondaryTemplate;
            try
            {
                noti.addActionsWithPermissionCheck(Actions);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
                Console.Write(e.StackTrace);
            }
            noti.AlertType = SrnRichNotification.AlertType.SOUND;

            Bitmap        appIconBitmap = BitmapFactory.decodeResource(context.Resources, R.drawable.uber_icon);
            SrnImageAsset appIcon       = new SrnImageAsset(context, "app_icon", appIconBitmap);

            noti.Icon = appIcon;

            noti.Title = "Movify";

            return(noti);
        }
        public virtual SrnRichNotification createRichNoti()
        {
            SrnRichNotification noti = new SrnRichNotification(context);

            noti.setReadout("New QR Code", "You have a new QR code.");

            noti.PrimaryTemplate = ImageTemplate;

            noti.SecondaryTemplate = ImageSecondaryTemplate;
            try
            {
                noti.addActionsWithPermissionCheck(Actions);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
                Console.Write(e.StackTrace);
            }
            noti.AlertType = SrnRichNotification.AlertType.VIBRATION;

            Bitmap        appIconBitmap = BitmapFactory.decodeResource(context.Resources, R.drawable.uber_icon);
            SrnImageAsset appIcon       = new SrnImageAsset(context, "app_icon", appIconBitmap);

            noti.Icon = appIcon;

            return(noti);
        }
		public virtual SrnRichNotification createRichNoti()
		{
			SrnRichNotification noti = new SrnRichNotification(context);
			noti.setReadout("New QR Code", "You have a new QR code.");

			noti.PrimaryTemplate = ImageTemplate;

			noti.SecondaryTemplate = ImageSecondaryTemplate;
			try
			{
			noti.addActionsWithPermissionCheck(Actions);
			}
			catch (Exception e)
			{
				Console.WriteLine(e.ToString());
				Console.Write(e.StackTrace);
			}
			noti.AlertType = SrnRichNotification.AlertType.VIBRATION;

			Bitmap appIconBitmap = BitmapFactory.decodeResource(context.Resources, R.drawable.uber_icon);
			SrnImageAsset appIcon = new SrnImageAsset(context, "app_icon", appIconBitmap);
			noti.Icon = appIcon;

			return noti;
		}
		public virtual SrnRichNotification createRichNoti()
		{
			SrnRichNotification noti = new SrnRichNotification(mContext);
			noti.setReadout("Facebook post", "Your friend post, nice weather in SFO");

			noti.PrimaryTemplate = SrnLargeHeaderTemplate;

			noti.SecondaryTemplate = SmallSecondaryTemplate;
			try
			{
			noti.addActionsWithPermissionCheck(Actions);
			}
			 catch (Exception e)
			 {
			   Console.WriteLine(e.ToString());
			   Console.Write(e.StackTrace);
			 }
			noti.AlertType = SrnRichNotification.AlertType.SILENCE;

			Bitmap appIconBitmap = BitmapFactory.decodeResource(mContext.Resources, R.drawable.uber_icon);
			SrnImageAsset appIcon = new SrnImageAsset(mContext, "app_icon", appIconBitmap);
			noti.Icon = appIcon;

			noti.Title = "Nice Weather";

			return noti;
		}