UIKeyboardPreferencesController

From iPhone Development Wiki
Jump to: navigation, search

UIKeyboardPreferencesController is an undocumented Class for setting and and getting various common and private keyboard properties. The property keys type is integer, representing the index for each string key in a constant array existing in the UIKit or TextInput binary. Tables below show each property key name, sorted by index, and domain handling the key.

Methods

Signature + (UIKeyboardPreferencesController *)sharedPreferencesController;
Available in 5.0 —

A singleton for this class.

Signature - (id)valueForKey:(NSInteger)key;
Available in 5.0 —

-[UIKeyboardPreferencesController valueForKey:] returns value from property key.

Signature - (BOOL)boolForKey:(NSInteger)key;
Available in 5.0 —

-[UIKeyboardPreferencesController boolForKey:] returns boolean value from property key.

Signature - (void)setValue:(id)value forKey:(NSInteger)key;
Available in 5.0 —

-[UIKeyboardPreferencesController setValue:forKey:] is used for setting value for property key.

Property Key List

Index Key name Domain
iOS 6 iOS 7 iOS 8 iOS 9 iOS 10
0 AppleKeyboards .GlobalPreferences
1 AppleKeyboardsExpanded
2 AppleKeyboardsIncludeIntl
3 AppleLocale
4 AppleLanguages
5 KeyboardSpoofSoftBank com.apple.Preferences
6 KeyboardEmojiEverywhere
7 KeyboardAutocorrection
8 KeyboardAutocapitalization
9 KeyboardCheckSpelling
10 KeyboardPeriodShortcut
11 KeyboardCapsLock
12 KeyboardLastUsed
13 KeyboardsCurrentAndNext
14 KeyboardLastUsedForLanguage
- 15 KeyboardLayoutLastUsedForKeyboard
15 16 KeyboardLastChosen
16 17 KeyboardDisplayType
17 18 KeyboardHardwareKeyboardsSeen
- 19 HardwareKeyboardLastSeen
- 20 SoftwareKeyboardShownByTouch
18 21 AutomaticMinimizationEnabled
20 22 UIKeyboardPersistentVerticalOffset
21 23 UIKeyboardPersistentHorizontalOffset
22 24 UIKeyboardPersistentSplitProgress
23 25 UIKeyboardPersistentSplitLock
24 26 UIKeyboardDidShowInternationalInfoAlert
25 27 EmojiDefaultsKey com.apple.EmojiPreferences
26 28 DictationTargetZone com.apple.Preferences
27 29 DictationVerticalOffset
28 30 DictationHorizontalOffset
29 31 KeyboardCellularNetworkAccess
30 32 RivenKeyboard
- 33 KeyboardPredictionHelpMessageCount
- 34 KeyboardShowPredictionBar
- 35 KeyboardPrediction
- 36 KeyboardBias
- 37 KeyboardAllowPaddle
- 38 KeyboardIsFloating
- 39 HWKeyboardAutocorrection
- 40 HWKeyboardAutocapitalization
- 41 HWKeyboardPeriodShortcut
- 42 HWKeyboardCapsLockRomanSwitch
31 34 37 38 43 DictationKeyAlwaysEnabled com.apple.keyboard
19 33 38 39 44 KeyboardPerformanceLogging
32 35 39 40 45 DictationLogging
33 36 40 41 46 TypologyEnabled
34 37 41 42 47 CostlyCapture
35 38 42 43 48 KeyboardDisableSpaceCorrections
36 39 43 44 49 KeyboardForceSpaceCorrections
37 40 - KeyboardAutocorrectionLists
38 - KeyboardExtendedAutocorrectionLearningDisabled
39 41 44 45 50 KeyboardRetrocorrectionDisabled
- 45 46 51 KeyboardWordNgramModel
- 46 47 52 KeyboardWordNgramModelAdaptation
- 47 48 53 KeyboardPredictiveness
- 48 49 54 KeyboardMaxWordsPerPrediction
- 49 50 55 KeyboardCompletionsShouldSharePrefix
40 42 50 51 56 KeyboardUserDictionarySyncing
41 43 51 52 57 KeyboardUserDictionarySyncingWithPropertyList
42 44 52 53 58 KeyboardAssetDownloading
43 45 53 54 59 KeyboardAssetDownloadInFive
44 46 54 55 60 KeyboardSettingsFromSwitcher
45 47 55 56 61 KeyboardSwipeToTab
46 48 56 57 62 RivenLayoutSize
47 49 57 58 63 KeyboardRecordingEnabled
48 50 58 59 64 UserKeyboardOverlays
49 51 59 60 65 ShowExtraLayouts
50 - UITextMagnifierMethod
51 52 60 61 66 UsePublicEmojiCodePoints
52 53 61 62 67 KeyboardCachingDisabled
53 54 - ChineseCompletionUsesNgram
54 55 62 63 68 ChinesePinyinAutocorrectionEnabled
- 56 63 64 69 HandwritingCaptureEnabled
- 57 64 65 70 HandwritingMultipleCharacterRecognitionEnabled
- 58 65 66 71 NonLegacyKeyboardEnabled
- 59 66 67 72 KeyboardGlobeKeyExperiments
- 60 67 68 - KeyboardInProcessInputManagers
- 73 KeyboardMobileAssetExperiments
- 68 69 74 HardwareKeyboardAutocorrectionEnabled
- 75 KeyboardFloatingEnabled  ?
- 76 KeyboardMultilingualEnabled
- 77 TypoTrackerButton
- 78 ProactiveQuickTypeSettings
- 79 ShowEmojisByDefault
55 61 69 70 80 FuzzyPinyin com.apple.InputModePreferences
56 62 70 71 81 SuchengCangjie
57 63 71 72 82 FuzzyPinyinPairs
58 64 72 73 83 SpaceConfirmation
- 73 - PredictiveUISettings com.apple.Preferences