namespace Tizen.Applications.Shortcut
{
+ using System;
+
/// <summary>
/// A class that contains the shortcut information.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public class HomeShortcutInfo : ShortcutInfo
{
/// <summary>
/// Gets or sets the specific information delivered to the viewer for creating a shortcut.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string Uri { get; set; } = string.Empty;
}
}
\ No newline at end of file
namespace Tizen.Applications.Shortcut
{
+ using System;
+
/// <summary>
/// Enumeration for the sizes of the shortcut widget.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public enum ShortcutWidgetSize
{
/// <summary>
/// <summary>
/// Enumeration for the shortcut types.
/// </summary>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
internal enum ShortcutType
{
/// <summary>
namespace Tizen.Applications.Shortcut
{
+ using System;
+
/// <summary>
/// A class to get the information of the shortcut.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public class ShortcutInfo
{
/// <summary>
/// Gets or sets the name of the created shortcut icon.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string ShortcutName { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the absolute path of an icon file for this shortcut.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string IconPath { get; set; } = string.Empty;
/// <summary>
/// Gets or sets a value indicating whether to allow or not allow duplication.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public bool IsAllowDuplicate { get; set; }
}
}
\ No newline at end of file
/// This class provides some functions to add or delete a shortcut.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static class ShortcutManager
{
private const string LogTag = "Tizen.Applications.Shortcut";
/// <exception cref="NotSupportedException">Thrown when the shortcut is not supported.</exception>
/// <exception cref="OutOfMemoryException">Thrown in case of out of memory.</exception>
/// <exception cref="InvalidOperationException">Thrown in case of any internal error.</exception>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static void Add(HomeShortcutInfo shortcut)
{
Interop.Shortcut.ErrorCode err = Interop.Shortcut.ErrorCode.None;
/// <exception cref="NotSupportedException">Thrown when the shortcut is not supported.</exception>
/// <exception cref="OutOfMemoryException">Thrown in case of out of memory.</exception>
/// <exception cref="InvalidOperationException">Thrown in case of any internal error.</exception>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static void Add(WidgetShortcutInfo shortcut)
{
Interop.Shortcut.ErrorCode err = Interop.Shortcut.ErrorCode.None;
/// <exception cref="NotSupportedException">Thrown when the shortcut is not supported.</exception>
/// <exception cref="OutOfMemoryException">Thrown in case of out of memory.</exception>
/// <exception cref="InvalidOperationException">Thrown in case of any internal error.</exception>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static void Delete(string shortcutName)
{
Interop.Shortcut.ErrorCode err = Interop.Shortcut.ErrorCode.None;
/// <exception cref="NotSupportedException">Thrown when the shortcut is not supported.</exception>
/// <exception cref="OutOfMemoryException">Thrown in case of out of memory.</exception>
/// <exception cref="InvalidOperationException">Thrown in case of any internal error.</exception>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static void Delete(ShortcutInfo shortcut)
{
if (shortcut == null)
namespace Tizen.Applications.Shortcut
{
+ using System;
+
/// <summary>
/// A class that contains the information about the widget.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public class WidgetShortcutInfo : ShortcutInfo
{
/// <summary>
/// Gets or sets the widget ID.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string WidgetId { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the size of the widget.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public ShortcutWidgetSize WidgetSize { get; set; }
/// <summary>
/// Gets or sets the update period in seconds.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public double Period { get; set; }
}
}
\ No newline at end of file
namespace Tizen.Applications.Shortcut
{
+ using System;
+
/// <summary>
/// A class that contains the shortcut information.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public class HomeShortcutAddedInfo : ShortcutAddedInfo
{
/// <summary>
/// Gets the name of the application.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string AppId { get; internal set; }
/// <summary>
/// Gets the specific information for creating a new shortcut.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string Uri { get; internal set; }
}
}
\ No newline at end of file
namespace Tizen.Applications.Shortcut
{
+ using System;
+
/// <summary>
/// A class for getting the information of the shortcut.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public class ShortcutAddedInfo
{
/// <summary>
/// Gets the name of the created shortcut icon.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string ShortcutName { get; internal set; }
/// <summary>
/// Gets the absolute path of an icon file for this shortcut.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string IconPath { get; internal set; }
/// <summary>
/// Gets a value indicating whether to allow or not to allow duplication.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public bool IsAllowDuplicate { get; internal set; }
}
}
\ No newline at end of file
namespace Tizen.Applications.Shortcut
{
+ using System;
+
/// <summary>
/// A class for getting the information of the shortcut.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public class ShortcutDeletedInfo
{
/// <summary>
/// Gets the name of the package.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string AppId { get; internal set; }
/// <summary>
/// Gets the name of the created shortcut icon.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string ShortcutName { get; internal set; }
}
}
\ No newline at end of file
namespace Tizen.Applications.Shortcut
{
+ using System;
+
/// <summary>
/// Enumeration for values of the shortcut response types.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public enum ShortcutError
{
/// <summary>
/// <param name="args">Object that contains the shortcut information to add.</param>
/// <returns>The result of handling a shortcut add request.</returns>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public delegate ShortcutError ShortcutAdded(ShortcutAddedInfo args);
/// <summary>
/// <param name="args">Object that contains the shortcut information to delete.</param>
/// <returns>The result of handling a shortcut delete request.</returns>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public delegate ShortcutError ShortcutDeleted(ShortcutDeletedInfo args);
/// <summary>
/// This class provides a way to register the callback function for the shortcut add and delete events.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static class ShortcutEventManager
{
private static Interop.Shortcut.AddCallback shortcutAddCallback;
/// <exception cref="NotSupportedException">Thrown when the shortcut is not supported.</exception>
/// <exception cref="OutOfMemoryException">Thrown in case of out of memory.</exception>
/// <exception cref="InvalidOperationException">Thrown in case of any internal error.</exception>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static void RegisterEventHandler(ShortcutAdded addedEvent)
{
if (shortcutAddCallback == null)
/// <exception cref="NotSupportedException">Thrown when the shortcut is not supported.</exception>
/// <exception cref="OutOfMemoryException">Thrown in case of out of memory.</exception>
/// <exception cref="InvalidOperationException">Thrown in case of any internal error.</exception>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static void RegisterEventHandler(ShortcutDeleted deletedEvent)
{
if (shortcutDeleteCallback == null)
/// <exception cref="ArgumentException">Thrown when an argument is invalid.</exception>
/// <exception cref="UnauthorizedAccessException">Thrown in case the permission is denied.</exception>
/// <exception cref="NotSupportedException">Thrown when the shortcut is not supported.</exception>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static void UnregisterEventHandler(ShortcutAdded addedEvent)
{
if (shortcutAdded != null && shortcutAdded.Equals(addedEvent))
/// <exception cref="ArgumentException">Thrown when an argument is invalid.</exception>
/// <exception cref="UnauthorizedAccessException">Thrown in case the permission is denied.</exception>
/// <exception cref="NotSupportedException">Thrown when the shortcut is not supported.</exception>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static void UnregisterEventHandler(ShortcutDeleted deletedEvent)
{
if (shortcutDeleted != null && shortcutDeleted.Equals(deletedEvent))
/// <exception cref="NotSupportedException">Thrown when the shortcut is not supported.</exception>
/// <exception cref="OutOfMemoryException">Thrown in case of out of memory.</exception>
/// <exception cref="InvalidOperationException">Thrown in case of any internal error.</exception>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public static IEnumerable<ShortcutTemplate> GetTemplateList(string appId)
{
shortcutTemplates.Clear();
namespace Tizen.Applications.Shortcut
{
+ using System;
+
/// <summary>
/// A class that contains the preset list of the shortcut template from the installed package.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public class ShortcutTemplate
{
/// <summary>
/// Gets the application ID.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string AppId { get; internal set; }
/// <summary>
/// Gets the name of the created shortcut icon.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string ShortcutName { get; internal set; }
/// <summary>
/// Gets the absolute path of an icon file for this shortcut.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string IconPath { get; internal set; }
/// <summary>
/// Gets the user data. A property of the shortcut element in the manifest file.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string ExtraKey { get; internal set; }
/// <summary>
/// Gets the user data. A property of the shortcut element in the manifest file.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string ExtraData { get; internal set; }
}
}
\ No newline at end of file
namespace Tizen.Applications.Shortcut
{
+ using System;
+
/// <summary>
/// A class that contains the information about the widget.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public class WidgetShortcutAddedInfo : ShortcutAddedInfo
{
/// <summary>
/// Gets the widget ID.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public string WidgetId { get; internal set; }
/// <summary>
/// Gets the size of the widget.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public ShortcutWidgetSize WidgetSize { get; internal set; }
/// <summary>
/// Gets the update period in seconds.
/// </summary>
/// <since_tizen> 4 </since_tizen>
+ [Obsolete("Deprecated since API12. Will be removed in API14.")]
public double Period { get; internal set; }
}
}
\ No newline at end of file