Class ShortcutManager

Definition

Namespace:
Tizen.Applications.Shortcut
Assembly:
Tizen.Applications.Shortcut.dll

This class provides some functions to add or delete a shortcut.

C#
Copy
[Obsolete("Deprecated since API12. Will be removed in API14.")] public static class ShortcutManager
Inheritance
object
ShortcutManager

Methods

View Source

Add(HomeShortcutInfo)

Adds a shortcut on the home-screen.

Declaration
C#
Copy
[Obsolete("Deprecated since API12. Will be removed in API14.")] public static void Add(HomeShortcutInfo shortcut)
Parameters
Type Name Description
HomeShortcutInfo shortcut

Object that contains the shortcut information.

Exceptions
Type Condition
System.ArgumentException

Thrown when an argument is invalid.

System.UnauthorizedAccessException

Thrown in case the permission is denied.

System.NotSupportedException

Thrown when the shortcut is not supported.

System.OutOfMemoryException

Thrown in case of out of memory.

System.InvalidOperationException

Thrown in case of any internal error.

View Source

Add(WidgetShortcutInfo)

Adds a shortcut on the home-screen.

Declaration
C#
Copy
[Obsolete("Deprecated since API12. Will be removed in API14.")] public static void Add(WidgetShortcutInfo shortcut)
Parameters
Type Name Description
WidgetShortcutInfo shortcut

Object that contains the shortcut information.

Exceptions
Type Condition
System.ArgumentException

Thrown when an argument is invalid.

System.UnauthorizedAccessException

Thrown in case the permission is denied.

System.NotSupportedException

Thrown when the shortcut is not supported.

System.OutOfMemoryException

Thrown in case of out of memory.

System.InvalidOperationException

Thrown in case of any internal error.

View Source

Delete(string)

Removes a shortcut from home by the ShortcutName.

Declaration
C#
Copy
[Obsolete("Deprecated since API12. Will be removed in API14.")] public static void Delete(string shortcutName)
Parameters
Type Name Description
string shortcutName

The shortcut name string.

Exceptions
Type Condition
System.ArgumentException

Thrown when an argument is invalid.

System.UnauthorizedAccessException

Thrown in case the permission is denied.

System.NotSupportedException

Thrown when the shortcut is not supported.

System.OutOfMemoryException

Thrown in case of out of memory.

System.InvalidOperationException

Thrown in case of any internal error.

View Source

Delete(ShortcutInfo)

Removes a shortcut from home by the ShortcutInfo.

Declaration
C#
Copy
[Obsolete("Deprecated since API12. Will be removed in API14.")] public static void Delete(ShortcutInfo shortcut)
Parameters
Type Name Description
ShortcutInfo shortcut

Object that contains the shortcut information.

Exceptions
Type Condition
System.ArgumentException

Thrown when an argument is invalid.

System.UnauthorizedAccessException

Thrown in case the permission is denied.

System.NotSupportedException

Thrown when the shortcut is not supported.

System.OutOfMemoryException

Thrown in case of out of memory.

System.InvalidOperationException

Thrown in case of any internal error.