Exemplo n.º 1
0
 /// <summary>
 /// Clears the badge.
 /// </summary>
 public void ClearBadge()
 {
     Badges.RemoveBadge(Application.Context);
 }
Exemplo n.º 2
0
        /**
         * Remove current badge count
         *
         * @param context context activity
         * @throws BadgesNotSupportedException when the current launcher is not supported by Badges
         */

        public static void RemoveBadge(Context context)
        {
            Badges.SetBadge(context, 0);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Sets the badge.
 /// </summary>
 /// <param name="badgeNumber">The badge number.</param>
 public void SetBadge(int badgeNumber)
 {
     Badges.SetBadge(Application.Context, badgeNumber);
 }