/// The class containing common properties of the Badge.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public class Badge
{
private int count = 0;
/// <param name="count">Count value</param>
/// <param name="visible">True if it should be displayed</param>
/// <exception cref="ArgumentException">Thrown when failed because of invalid argument</exception>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public Badge(string appId, int count = 1, bool visible = true)
{
if (IsNegativeNumber(count))
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// <exception cref="ArgumentException">Thrown when set negative number</exception>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public int Count
{
get
/// Property for the application ID of the badge.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string AppId { get; set; }
/// <summary>
/// Property for display visibility. True if the badge display visible, otherwise false..
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public bool Visible{ get; set; }
private bool IsNegativeNumber(int number)
/// The class for badge operation.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static class BadgeControl
{
private static event EventHandler<BadgeEventArgs> s_changed;
/// <exception cref="InvalidOperationException">Thrown in case of failed conditions.</exception>
/// <exception cref="UnauthorizedAccessException">Thrown when an application does not have the privilege to access.</exception>
/// <exception cref="NotSupportedException">Thrown when Badge is not supported.</exception>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static event EventHandler<BadgeEventArgs> Changed
{
add
/// <exception cref="UnauthorizedAccessException">Thrown when an application does not have the privilege to access.</exception>
/// <exception cref="InvalidOperationException">Thrown in case of failed conditions.</exception>
/// <exception cref="NotSupportedException">Thrown when Badge is not supported.</exception>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static Badge Find(string appId)
{
uint count;
/// <exception cref="UnauthorizedAccessException">Thrown when an application does not have the privilege to access.</exception>
/// <exception cref="InvalidOperationException">Thrown in case of failed conditions.</exception>
/// <exception cref="NotSupportedException">Thrown when Badge is not supported.</exception>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static void Remove(string appId)
{
BadgeError err = Interop.Badge.Remove(appId);
/// <exception cref="UnauthorizedAccessException">Thrown when an application does not have the privilege to access.</exception>
/// <exception cref="InvalidOperationException">Thrown in case of failed conditions.</exception>
/// <exception cref="NotSupportedException">Thrown when Badge is not supported.</exception>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static void Remove(Badge badge)
{
if (badge == null)
/// <exception cref="UnauthorizedAccessException">Thrown when an application does not have the privilege to access.</exception>
/// <exception cref="InvalidOperationException">Thrown in case of failed conditions.</exception>
/// <exception cref="NotSupportedException">Thrown when Badge is not supported.</exception>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static void Add(Badge badge)
{
if (badge == null)
/// <exception cref="UnauthorizedAccessException">Thrown when an application does not have the privilege to access.</exception>
/// <exception cref="InvalidOperationException">Thrown in case of failed conditions.</exception>
/// <exception cref="NotSupportedException">Thrown when Badge is not supported.</exception>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static void Update(Badge badge)
{
if (badge == null)
/// <exception cref="UnauthorizedAccessException">Thrown when an application does not have the privilege to access.</exception>
/// <exception cref="InvalidOperationException">Thrown in case of failed conditions.</exception>
/// <exception cref="NotSupportedException">Thrown when Badge is not supported.</exception>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static IEnumerable<Badge> GetBadges()
{
IList<Badge> list = new List<Badge>();
/// The class for event arguments of the badge event.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public class BadgeEventArgs : EventArgs
{
internal BadgeEventArgs()
/// Enumeration for the badge action.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public enum Action : int
{
/// <summary>
/// The property for the badge object.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public Badge Badge { get; internal set; }
/// <summary>
/// The property for the action value.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public Action Reason { get; internal set; }
}
}