private void ShowStatus(string style, string message)
 {
     if (autoDismiss)
     {
         StatusBarNotification.Show(message, DismissalDelay, style);
     }
     else
     {
         StatusBarNotification.Show(message, style);
     }
 }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // presenting a notification, before a keyWindow is set
            StatusBarNotification.Show("Hello World!", 2.0, StatusBarStyles.Matrix);

            // create custom styles
            StatusBarNotification.AddStyle(CustomStyle1, style => {
                style.BarColor          = new UIColor(0.797f, 0.000f, 0.662f, 1.000f);
                style.TextColor         = UIColor.White;
                style.AnimationType     = StatusBarAnimationType.Fade;
                style.Font              = UIFont.FromName("SnellRoundhand-Bold", 17.0f);
                style.ProgressBarColor  = new UIColor(0.986f, 0.062f, 0.598f, 1.000f);
                style.ProgressBarHeight = 20.0f;
                return(style);
            });
            StatusBarNotification.AddStyle(CustomStyle2, style => {
                style.BarColor            = UIColor.Cyan;
                style.TextColor           = new UIColor(0.056f, 0.478f, 0.478f, 1.000f);
                style.AnimationType       = StatusBarAnimationType.Bounce;
                style.ProgressBarColor    = style.TextColor;
                style.ProgressBarHeight   = 5.0f;
                style.ProgressBarPosition = StatusBarProgressBarPosition.Top;
                if (UIDevice.CurrentDevice.CheckSystemVersion(7, 0))
                {
                    style.Font = UIFont.FromName("DINCondensed-Bold", 17.0f);
                    style.TextVerticalPositionAdjustment = 2.0f;
                }
                else
                {
                    style.Font = UIFont.FromName("HelveticaNeue-CondensedBold", 17.0f);
                }
                return(style);
            });
        }