@@ -39,7 +39,7 @@ - (void)registerNotificationListener {
39
39
selector: @selector (didBecomeInactive: )
40
40
name: UIApplicationDidEnterBackgroundNotification
41
41
object: nil ];
42
- #if !CLS_TARGET_OS_XR
42
+ #if !CLS_TARGET_OS_VISION
43
43
[[NSNotificationCenter defaultCenter ] addObserver: self
44
44
selector: @selector (didChangeOrientation: )
45
45
name: UIDeviceOrientationDidChangeNotification
@@ -53,7 +53,7 @@ - (void)registerNotificationListener {
53
53
name: UIApplicationDidChangeStatusBarOrientationNotification
54
54
object: nil ];
55
55
#pragma clang diagnostic pop
56
- #endif // !CLS_TARGET_OS_XR
56
+ #endif // !CLS_TARGET_OS_VISION
57
57
58
58
#elif CLS_TARGET_OS_OSX
59
59
[[NSNotificationCenter defaultCenter ] addObserver: self
@@ -68,22 +68,22 @@ - (void)registerNotificationListener {
68
68
}
69
69
70
70
- (void )captureInitialNotificationStates {
71
- #if TARGET_OS_IOS && (!CLS_TARGET_OS_XR )
71
+ #if TARGET_OS_IOS && (!CLS_TARGET_OS_VISION )
72
72
UIDeviceOrientation orientation = [[UIDevice currentDevice ] orientation ];
73
73
UIInterfaceOrientation statusBarOrientation =
74
74
[FIRCLSApplicationSharedInstance () statusBarOrientation ];
75
- #endif // TARGET_OS_IOS && (!CLS_TARGET_OS_XR )
75
+ #endif // TARGET_OS_IOS && (!CLS_TARGET_OS_VISION )
76
76
77
77
// It's nice to do this async, so we don't hold up the main thread while doing three
78
78
// consecutive IOs here.
79
79
dispatch_async (FIRCLSGetLoggingQueue (), ^{
80
80
FIRCLSUserLoggingWriteInternalKeyValue (FIRCLSInBackgroundKey, @" 0" );
81
- #if TARGET_OS_IOS && (!CLS_TARGET_OS_XR )
81
+ #if TARGET_OS_IOS && (!CLS_TARGET_OS_VISION )
82
82
FIRCLSUserLoggingWriteInternalKeyValue (FIRCLSDeviceOrientationKey,
83
83
[@(orientation) description ]);
84
84
FIRCLSUserLoggingWriteInternalKeyValue (FIRCLSUIOrientationKey,
85
85
[@(statusBarOrientation) description ]);
86
- #endif // TARGET_OS_IOS && (!CLS_TARGET_OS_XR )
86
+ #endif // TARGET_OS_IOS && (!CLS_TARGET_OS_VISION )
87
87
});
88
88
}
89
89
@@ -95,7 +95,7 @@ - (void)didBecomeInactive:(NSNotification *)notification {
95
95
FIRCLSUserLoggingRecordInternalKeyValue (FIRCLSInBackgroundKey, @YES );
96
96
}
97
97
98
- #if TARGET_OS_IOS && (!CLS_TARGET_OS_XR )
98
+ #if TARGET_OS_IOS && (!CLS_TARGET_OS_VISION )
99
99
- (void )didChangeOrientation : (NSNotification *)notification {
100
100
UIDeviceOrientation orientation = [[UIDevice currentDevice ] orientation ];
101
101
@@ -108,6 +108,6 @@ - (void)didChangeUIOrientation:(NSNotification *)notification {
108
108
109
109
FIRCLSUserLoggingRecordInternalKeyValue (FIRCLSUIOrientationKey, @(statusBarOrientation));
110
110
}
111
- #endif // TARGET_OS_IOS && (!CLS_TARGET_OS_XR )
111
+ #endif // TARGET_OS_IOS && (!CLS_TARGET_OS_VISION )
112
112
113
113
@end
0 commit comments