FBSDKAppEventsDeviceInfo.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright (c) Meta Platforms, Inc. and affiliates.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the license found in the
  6. * LICENSE file in the root directory of this source tree.
  7. */
  8. #import <FBSDKCoreKit/FBSDKDeviceInformationProviding.h>
  9. #import <Foundation/Foundation.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. /**
  12. Internal type exposed to facilitate transition to Swift.
  13. API Subject to change or removal without warning. Do not use.
  14. @warning INTERNAL - DO NOT USE
  15. */
  16. NS_SWIFT_NAME(_AppEventsDeviceInfo)
  17. @interface FBSDKAppEventsDeviceInfo : NSObject <FBSDKDeviceInformationProviding>
  18. @property (class, nonnull, nonatomic, readonly) FBSDKAppEventsDeviceInfo *shared;
  19. @property (nullable, nonatomic, readonly) id<FBSDKSettings> settings;
  20. // Ephemeral data, may change during the lifetime of an app. We collect them in different
  21. // 'group' frequencies - group1 may gets collected once every 30 minutes.
  22. // group1
  23. @property (nonatomic) NSString *carrierName;
  24. @property (nonatomic) NSString *timeZoneAbbrev;
  25. @property (nonatomic) NSString *timeZoneName;
  26. // Persistent data, but we maintain it to make rebuilding the device info as fast as possible.
  27. @property (nonatomic) NSString *bundleIdentifier;
  28. @property (nonatomic) NSString *longVersion;
  29. @property (nonatomic) NSString *shortVersion;
  30. @property (nonatomic) NSString *sysVersion;
  31. @property (nonatomic) NSString *machine;
  32. @property (nonatomic) NSString *language;
  33. @property (nonatomic) unsigned long long coreCount;
  34. @property (nonatomic) CGFloat width;
  35. @property (nonatomic) CGFloat height;
  36. @property (nonatomic) CGFloat density;
  37. #if !DEBUG
  38. - (instancetype)init NS_UNAVAILABLE;
  39. + (instancetype)new NS_UNAVAILABLE;
  40. #endif
  41. - (void)configureWithSettings:(id<FBSDKSettings>)settings
  42. NS_SWIFT_NAME(configure(settings:));
  43. #if DEBUG
  44. - (void)resetDependencies;
  45. #endif
  46. @end
  47. NS_ASSUME_NONNULL_END