commit | author | age
|
e0ec42
|
1 |
/* |
L |
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 |
|
|
9 |
#import <FBSDKCoreKit/FBSDKDeviceInformationProviding.h> |
|
10 |
#import <Foundation/Foundation.h> |
|
11 |
|
|
12 |
NS_ASSUME_NONNULL_BEGIN |
|
13 |
|
|
14 |
/** |
|
15 |
Internal type exposed to facilitate transition to Swift. |
|
16 |
API Subject to change or removal without warning. Do not use. |
|
17 |
|
|
18 |
@warning INTERNAL - DO NOT USE |
|
19 |
*/ |
|
20 |
NS_SWIFT_NAME(_AppEventsDeviceInfo) |
|
21 |
@interface FBSDKAppEventsDeviceInfo : NSObject <FBSDKDeviceInformationProviding> |
|
22 |
|
|
23 |
@property (class, nonnull, nonatomic, readonly) FBSDKAppEventsDeviceInfo *shared; |
|
24 |
|
|
25 |
@property (nullable, nonatomic, readonly) id<FBSDKSettings> settings; |
|
26 |
|
97fc0a
|
27 |
// Ephemeral data, may change during the lifetime of an app. We collect them in different |
L |
28 |
// 'group' frequencies - group1 may gets collected once every 30 minutes. |
|
29 |
|
|
30 |
// group1 |
|
31 |
@property (nonatomic) NSString *carrierName; |
|
32 |
@property (nonatomic) NSString *timeZoneAbbrev; |
|
33 |
@property (nonatomic) NSString *timeZoneName; |
|
34 |
|
|
35 |
// Persistent data, but we maintain it to make rebuilding the device info as fast as possible. |
|
36 |
@property (nonatomic) NSString *bundleIdentifier; |
|
37 |
@property (nonatomic) NSString *longVersion; |
|
38 |
@property (nonatomic) NSString *shortVersion; |
|
39 |
@property (nonatomic) NSString *sysVersion; |
|
40 |
@property (nonatomic) NSString *machine; |
|
41 |
@property (nonatomic) NSString *language; |
|
42 |
@property (nonatomic) unsigned long long coreCount; |
|
43 |
@property (nonatomic) CGFloat width; |
|
44 |
@property (nonatomic) CGFloat height; |
|
45 |
@property (nonatomic) CGFloat density; |
|
46 |
|
e0ec42
|
47 |
#if !DEBUG |
L |
48 |
- (instancetype)init NS_UNAVAILABLE; |
|
49 |
+ (instancetype)new NS_UNAVAILABLE; |
|
50 |
#endif |
|
51 |
|
|
52 |
- (void)configureWithSettings:(id<FBSDKSettings>)settings |
|
53 |
NS_SWIFT_NAME(configure(settings:)); |
|
54 |
|
|
55 |
#if DEBUG |
|
56 |
- (void)resetDependencies; |
|
57 |
#endif |
|
58 |
|
|
59 |
@end |
|
60 |
|
|
61 |
NS_ASSUME_NONNULL_END |