ARDSettingsStore.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright 2016 The WebRTC Project Authors. All rights reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #import <Foundation/Foundation.h>
  11. NS_ASSUME_NONNULL_BEGIN
  12. /**
  13. * Light-weight persistent store for user settings.
  14. *
  15. * It will persist between application launches and application updates.
  16. */
  17. @interface ARDSettingsStore : NSObject
  18. @property(nonatomic) NSString *videoResolution;
  19. @property(nonatomic) NSString *videoCodec;
  20. @property(nonatomic) BOOL videoDisabledDefault;
  21. /**
  22. * Returns current max bitrate number stored in the store.
  23. */
  24. - (nullable NSNumber *)maxBitrate;
  25. /**
  26. * Stores the provided value as maximum bitrate setting.
  27. * @param value the number to be stored
  28. */
  29. - (void)setMaxBitrate:(nullable NSNumber *)value;
  30. @end
  31. NS_ASSUME_NONNULL_END