Class ShortcutEventManager
Definition
- Namespace:
- Tizen.Applications.Shortcut
- Assembly:
- Tizen.Applications.Shortcut.dll
- API Level:
- 4
This class provides a way to register the callback function for the shortcut add and delete events.
C#Copypublic static class ShortcutEventManager
- Inheritance
-
System.ObjectShortcutEventManager
Methods
GetTemplateList(String)
Gets the preset list of the shortcut template from the installed package.
Declaration
C#Copypublic static IEnumerable<ShortcutTemplate> GetTemplateList(string appId)
Parameters
Type | Name | Description |
---|---|---|
System.String | appId | The application ID. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ShortcutTemplate> | The List of ShortcutTemplate. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when an argument is invalid. |
UnauthorizedAccessException | Thrown in case the permission is denied. |
System.NotSupportedException | Thrown when the shortcut is not supported. |
OutOfMemoryException | Thrown in case of out of memory. |
System.InvalidOperationException | Thrown in case of any internal error. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/shortcut
Feature: http://tizen.org/feature/shortcut
RegisterEventHandler(ShortcutAdded)
Registers a callback function to listen requests from the applications.
Declaration
C#Copypublic static void RegisterEventHandler(ShortcutAdded addedEvent)
Parameters
Type | Name | Description |
---|---|---|
ShortcutAdded | addedEvent | The callback function pointer that is invoked when Add() is requested. |
Remarks
Previous registered delegate function should be unregistered.
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when an argument is invalid. |
UnauthorizedAccessException | Thrown in case the permission is denied. |
System.NotSupportedException | Thrown when the shortcut is not supported. |
OutOfMemoryException | Thrown in case of out of memory. |
System.InvalidOperationException | Thrown in case of any internal error. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/shortcut
Feature: http://tizen.org/feature/shortcut
RegisterEventHandler(ShortcutDeleted)
Registers a callback function to listen requests from the applications.
Declaration
C#Copypublic static void RegisterEventHandler(ShortcutDeleted deletedEvent)
Parameters
Type | Name | Description |
---|---|---|
ShortcutDeleted | deletedEvent | The callback function pointer that is invoked when Delete() is requested. |
Remarks
Previous registered delegate function should be unregistered.
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when an argument is invalid. |
UnauthorizedAccessException | Thrown in case the permission is denied. |
System.NotSupportedException | Thrown when the shortcut is not supported. |
OutOfMemoryException | Thrown in case of out of memory. |
System.InvalidOperationException | Thrown in case of any internal error. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/shortcut
Feature: http://tizen.org/feature/shortcut
Declaration
C#Copypublic static void UnregisterEventHandler(ShortcutAdded addedEvent)
Parameters
Type | Name | Description |
---|---|---|
ShortcutAdded | addedEvent | The callback function pointer that is used for RegisterCallback. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when an argument is invalid. |
UnauthorizedAccessException | Thrown in case the permission is denied. |
System.NotSupportedException | Thrown when the shortcut is not supported. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/shortcut
Feature: http://tizen.org/feature/shortcut
UnregisterEventHandler(ShortcutDeleted)
Unregisters a callback for the shortcut request.
Declaration
C#Copypublic static void UnregisterEventHandler(ShortcutDeleted deletedEvent)
Parameters
Type | Name | Description |
---|---|---|
ShortcutDeleted | deletedEvent | The callback function pointer that is used for RegisterCallback. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when an argument is invalid. |
UnauthorizedAccessException | Thrown in case the permission is denied. |
System.NotSupportedException | Thrown when the shortcut is not supported. |