UIKeyboardPreferencesController

From iPhone Development Wiki
Revision as of 12:41, 20 March 2015 by PoomSmart (talk | contribs) (UIKeyboardPreferencesController)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

UIKeyboardPreferencesController is an undocumented Class for setting and and getting various common and private keyboard properties. In fact, property keys type is integer. They are converted to readable string for further uses. Tables below show each property key name, its integer representative, and its domain.

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

For iOS 6

Integer Key name Domain
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 KeyboardLastChosen
16 KeyboardDisplayType
17 KeyboardHardwareKeyboardsSeen
18 AutomaticMinimizationEnabled
19 KeyboardPerformanceLogging
20 UIKeyboardPersistentVerticalOffset
21 UIKeyboardPersistentHorizontalOffset
22 UIKeyboardPersistentSplitProgress
23 UIKeyboardPersistentSplitLock
24 UIKeyboardDidShowInternationalInfoAlert
25 EmojiDefaultsKey com.apple.EmojiPreferences
26 DictationTargetZone com.apple.Preferences
27 DictationVerticalOffset
28 DictationHorizontalOffset
29 KeyboardCellularNetworkAccess
30 RivenKeyboard
31 DictationKeyAlwaysEnabled com.apple.keyboard
32 DictationLogging
33 TypologyEnabled
34 CostlyCapture
35 KeyboardDisableSpaceCorrections
36 KeyboardForceSpaceCorrections
37 KeyboardAutocorrectionLists
38 KeyboardExtendedAutocorrectionLearningDisabled
39 KeyboardRetrocorrectionDisabled
40 KeyboardUserDictionarySyncing
41 KeyboardUserDictionarySyncingWithPropertyList
42 KeyboardAssetDownloading
43 KeyboardAssetDownloadInFive
44 KeyboardSettingsFromSwitcher
45 KeyboardSwipeToTab
46 RivenLayoutSize
47 KeyboardRecordingEnabled
48 UserKeyboardOverlays
49 ShowExtraLayouts
50 UITextMagnifierMethod
51 UsePublicEmojiCodePoints
52 KeyboardCachingDisabled
53 ChineseCompletionUsesNgram
54 ChinesePinyinAutocorrectionEnabled
55 FuzzyPinyin com.apple.InputModePreferences
56 SuchengCangjie
57 FuzzyPinyinPairs
58 SpaceConfirmation

For iOS 7 and 8

Integer Key name Domain
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
16 KeyboardLastChosen
17 KeyboardDisplayType
18 KeyboardHardwareKeyboardsSeen
19 HardwareKeyboardLastSeen
20 SoftwareKeyboardShownByTouch
21 AutomaticMinimizationEnabled
22 UIKeyboardPersistentVerticalOffset
23 UIKeyboardPersistentHorizontalOffset
24 UIKeyboardPersistentSplitProgress
25 UIKeyboardPersistentSplitLock
26 UIKeyboardDidShowInternationalInfoAlert
27 EmojiDefaultsKey com.apple.EmojiPreferences
28 DictationTargetZone com.apple.Preferences
29 DictationVerticalOffset
30 DictationHorizontalOffset
31 KeyboardCellularNetworkAccess
32 RivenKeyboard
33 KeyboardPredictionHelpMessageCount*
34 KeyboardShowPredictionBar*
35 KeyboardPrediction*
36 KeyboardBias*
37 - 68 Unknown Unknown
69 FuzzyPinyin com.apple.InputModePreferences
70 SuchengCangjie
71 FuzzyPinyinPairs
72 SpaceConfirmation
73 PredictiveUISettings* com.apple.Preferences

(*) iOS 8 only.