Class ShortcutEventManager
Definition
- Namespace:
- Tizen.Applications.Shortcut
- Assembly:
- Tizen.Applications.Shortcut.dll
This class provides a way to register the callback function for the shortcut add and delete events.
public static class ShortcutEventManager
- Inheritance
-
objectShortcutEventManager
Methods
View SourceGetTemplateList(string)
Gets the preset list of the shortcut template from the installed package.
Declaration
public static IEnumerable<ShortcutTemplate> GetTemplateList(string appId)
Parameters
Type | Name | Description |
---|---|---|
string | appId | The application ID. |
Returns
Type | Description |
---|---|
IEnumerable<><ShortcutTemplate> | The List of ShortcutTemplate. |
RegisterEventHandler(ShortcutAdded)
Registers a callback function to listen requests from the applications.
Declaration
public 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.
RegisterEventHandler(ShortcutDeleted)
Registers a callback function to listen requests from the applications.
Declaration
public 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.
UnregisterEventHandler(ShortcutAdded)
Unregisters a callback for the shortcut request.
Declaration
public static void UnregisterEventHandler(ShortcutAdded addedEvent)
Parameters
Type | Name | Description |
---|---|---|
ShortcutAdded | addedEvent | The callback function pointer that is used for RegisterCallback. |
UnregisterEventHandler(ShortcutDeleted)
Unregisters a callback for the shortcut request.
Declaration
public static void UnregisterEventHandler(ShortcutDeleted deletedEvent)
Parameters
Type | Name | Description |
---|---|---|
ShortcutDeleted | deletedEvent | The callback function pointer that is used for RegisterCallback. |