TIPreferencesController.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /**
  2. * iOS-Runtime-Headers/PrivateFrameworks/TextInput.framework.
  3. * Text Input preferences controller to modify the keyboard preferences for iOS 8+.
  4. *
  5. * Note:
  6. * "autocorrection" will be PrivateFrameworks/TextInput.framework/TIKeyboardState.h in the future?
  7. */
  8. @interface TIPreferencesController : NSObject
  9. /**
  10. * Whether the autocorrection is enabled.
  11. */
  12. @property BOOL autocorrectionEnabled;
  13. /**
  14. * Whether the predication is enabled.
  15. * */
  16. @property BOOL predictionEnabled;
  17. /**
  18. The shared singleton instance.
  19. */
  20. + (instancetype)sharedPreferencesController;
  21. /**
  22. Synchronise the change to save it on disk.
  23. */
  24. - (void)synchronizePreferences;
  25. /**
  26. * Modify the preference @c value by the @c key
  27. *
  28. * @param value The value to set it to @c key
  29. * @param key The key name to set @c value to
  30. */
  31. - (void)setValue:(NSValue *)value forPreferenceKey:(NSString *)key;
  32. /**
  33. * Get the preferenve by @c key
  34. *
  35. * @param key The key name to get the value
  36. * @return Whether the @c key is enabled
  37. */
  38. - (BOOL)boolForPreferenceKey:(NSString *)key;
  39. @end