FLEXDefaultsContentSection.h 942 B

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