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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
// SDLKeyboardProperties.h
//
#import "SDLRPCMessage.h"
#import "SDLKeyboardLayout.h"
#import "SDLKeypressMode.h"
#import "SDLLanguage.h"
NS_ASSUME_NONNULL_BEGIN
/**
Configuration of on-screen keyboard (if available)
*/
@interface SDLKeyboardProperties : SDLRPCStruct
/**
Create a Keyboard Properties RPC object
@param language The language to set the keyboard to
@param layout The layout of the keyboard
@param keypressMode The mode of keypresses to use
@param limitedCharacterList A list of characters restricting what the user is allowed to press
@param autoCompleteText A string to show the user to complete what they are typing
@return The RPC object
*/
- (instancetype)initWithLanguage:(nullable SDLLanguage)language layout:(nullable SDLKeyboardLayout)layout keypressMode:(nullable SDLKeypressMode)keypressMode limitedCharacterList:(nullable NSArray<NSString *> *)limitedCharacterList autoCompleteText:(nullable NSString *)autoCompleteText __deprecated_msg(("use initWithLanguagelayout:keypressMode:limitedCharacterList:autoCompleteText:autoCompleteList: instead"));
/**
Create a Keyboard Properties RPC object
@param language The language to set the keyboard to
@param layout The layout of the keyboard
@param keypressMode The mode of keypresses to use
@param limitedCharacterList A list of characters restricting what the user is allowed to press
@param autoCompleteText A string to show to user to complete what they are typing
@param autoCompleteList A list of strings to show the user to complete what they are typing.
@return The RPC object
*/
- (instancetype)initWithLanguage:(nullable SDLLanguage)language layout:(nullable SDLKeyboardLayout)layout keypressMode:(nullable SDLKeypressMode)keypressMode limitedCharacterList:(nullable NSArray<NSString *> *)limitedCharacterList autoCompleteText:(nullable NSString *)autoCompleteText autoCompleteList:(nullable NSArray<NSString *> *)autoCompleteList;
/**
The keyboard language
Optional
*/
@property (nullable, strong, nonatomic) SDLLanguage language;
/**
Desired keyboard layout
Optional
*/
@property (nullable, strong, nonatomic) SDLKeyboardLayout keyboardLayout;
/**
Desired keypress mode.
If omitted, this value will be set to RESEND_CURRENT_ENTRY.
Optional
*/
@property (nullable, strong, nonatomic) SDLKeypressMode keypressMode;
/**
Array of keyboard characters to enable. All omitted characters will be greyed out (disabled) on the keyboard. If omitted, the entire keyboard will be enabled.
Optional
*/
@property (nullable, strong, nonatomic) NSArray<NSString *> *limitedCharacterList;
/**
Allows an app to prepopulate the text field with a suggested or completed entry as the user types
Optional
*/
@property (nullable, strong, nonatomic) NSString *autoCompleteText;
/**
Allows an app to show a list of possible autocomplete suggestions as the user types
Optional, 1-100 items, max string length 1000 characters (note that these may not all be displayed on the screen)
*/
@property (nullable, strong, nonatomic) NSArray<NSString *> *autoCompleteList;
@end
NS_ASSUME_NONNULL_END
|