SetBadge() public static method

public static SetBadge ( Android.Content.Context context, int count ) : void
context Android.Content.Context
count int
return void
Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the badge.
 /// </summary>
 /// <param name="badgeNumber">The badge number.</param>
 public void SetBadge(int badgeNumber)
 {
     Badges.SetBadge(Application.Context, badgeNumber);
 }