FLEXDefaultsContentSection.h 976 B

12345678910111213141516171819202122232425262728
  1. //
  2. // FLEXDefaultsContentSection.h
  3. // FLEX
  4. //
  5. // Created by Tanner Bennett on 8/28/19.
  6. // Copyright © 2020 FLEX Team. All rights reserved.
  7. //
  8. #import "FLEXCollectionContentSection.h"
  9. #import "FLEXObjectInfoSection.h"
  10. @interface FLEXDefaultsContentSection : FLEXCollectionContentSection <FLEXObjectInfoSection>
  11. /// Uses \c NSUserDefaults.standardUserDefaults
  12. + (instancetype)standard;
  13. + (instancetype)forDefaults:(NSUserDefaults *)userDefaults;
  14. /// Whether or not to filter out keys not present in the app's user defaults file.
  15. ///
  16. /// This is useful for filtering out some useless keys that seem to appear
  17. /// in every app's defaults but are never actually used or touched by the app.
  18. /// Only applies to instances using \c NSUserDefaults.standardUserDefaults.
  19. /// This is the default for any instance using \c standardUserDefaults, so
  20. /// you must opt-out in those instances if you don't want this behavior.
  21. @property (nonatomic) BOOL onlyShowKeysForAppPrefs;
  22. @end