Show / Hide Table of Contents

    Class ShortcutManager

    Definition

    Namespace:
    Tizen.Applications.Shortcut
    Assembly:
    Tizen.Applications.Shortcut.dll
    API Level:
    4

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

    public static class ShortcutManager
    Inheritance
    Object
    ShortcutManager

    Methods

    View Source

    Add(HomeShortcutInfo)

    Adds a shortcut on the home-screen.

    Declaration
    public static void Add(HomeShortcutInfo shortcut)
    Parameters
    Type Name Description
    HomeShortcutInfo shortcut

    Object that contains the shortcut information.

    Exceptions
    Type Condition
    ArgumentException

    Thrown when an argument is invalid.

    UnauthorizedAccessException

    Thrown in case the permission is denied.

    NotSupportedException

    Thrown when the shortcut is not supported.

    OutOfMemoryException

    Thrown in case of out of memory.

    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
    View Source

    Add(WidgetShortcutInfo)

    Adds a shortcut on the home-screen.

    Declaration
    public static void Add(WidgetShortcutInfo shortcut)
    Parameters
    Type Name Description
    WidgetShortcutInfo shortcut

    Object that contains the shortcut information.

    Exceptions
    Type Condition
    ArgumentException

    Thrown when an argument is invalid.

    UnauthorizedAccessException

    Thrown in case the permission is denied.

    NotSupportedException

    Thrown when the shortcut is not supported.

    OutOfMemoryException

    Thrown in case of out of memory.

    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
    View Source

    Delete(String)

    Removes a shortcut from home by the ShortcutName.

    Declaration
    public static void Delete(string shortcutName)
    Parameters
    Type Name Description
    String shortcutName

    The shortcut name string.

    Exceptions
    Type Condition
    ArgumentException

    Thrown when an argument is invalid.

    UnauthorizedAccessException

    Thrown in case the permission is denied.

    NotSupportedException

    Thrown when the shortcut is not supported.

    OutOfMemoryException

    Thrown in case of out of memory.

    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
    View Source

    Delete(ShortcutInfo)

    Removes a shortcut from home by the ShortcutInfo.

    Declaration
    public static void Delete(ShortcutInfo shortcut)
    Parameters
    Type Name Description
    ShortcutInfo shortcut

    Object that contains the shortcut information.

    Exceptions
    Type Condition
    ArgumentException

    Thrown when an argument is invalid.

    UnauthorizedAccessException

    Thrown in case the permission is denied.

    NotSupportedException

    Thrown when the shortcut is not supported.

    OutOfMemoryException

    Thrown in case of out of memory.

    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
    • View Source
    Back to top Copyright © 2016-2022 Samsung
    Generated by DocFX