blob: 32e19858534d2a4a9d7a18f025e8c8ce4e204e42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package com.smartdevicelink.proxy.rpc.enums;
/**
* Enumeration listing possible keyboard events.
*
*
*/
public enum KeypressMode {
/**
* Each keypress is individually sent as the user presses the keyboard keys.
*/
SINGLE_KEYPRESS,
/**
* The keypresses are queued and a string is eventually sent once the user chooses to submit their entry.
*/
QUEUE_KEYPRESSES,
/**
* The keypresses are queue and a string is sent each time the user presses a keyboard key; the string contains the entire current entry.
*/
RESEND_CURRENT_ENTRY;
public static KeypressMode valueForString(String value) {
try{
return valueOf(value);
}catch(Exception e){
return null;
}
}
}
|