SDL_Android/SmartDeviceLinkAndroidProxy - added the correct version of the proxy
[profile/ivi/smartdevicelink.git] / SDL_Android / SmartDeviceLinkProxyAndroid / src / com / smartdevicelink / proxy / rpc / enums / ButtonPressMode.java
1 package com.smartdevicelink.proxy.rpc.enums;\r
2 \r
3 /**\r
4  * Indicates whether this is a LONG or SHORT button press\r
5  * <p>\r
6  * \r
7  * @since SmartDeviceLink 1.0\r
8  */\r
9 public enum ButtonPressMode {\r
10         /**\r
11          * The button has been depressed for 2 seconds. The button may remain\r
12          * depressed after receiving this event\r
13          */\r
14         LONG,\r
15         /**\r
16          * The button was released before the 2-second long-press interval had\r
17          * elapsed\r
18          */\r
19         SHORT;\r
20         /**\r
21          * Returns a ButtonPressMode (LONG or SHORT)\r
22          * \r
23          * @param value\r
24          *            a String\r
25          * @return ButtonPressMode -LONG or SHORT\r
26          */\r
27 \r
28     public static ButtonPressMode valueForString(String value) {\r
29         return valueOf(value);\r
30     }\r
31 }\r