/// <summary> /// Clears the badge. /// </summary> public void ClearBadge() { Badges.RemoveBadge(Application.Context); }
/** * 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); }
/// <summary> /// Sets the badge. /// </summary> /// <param name="badgeNumber">The badge number.</param> public void SetBadge(int badgeNumber) { Badges.SetBadge(Application.Context, badgeNumber); }