2024-05-02 15:08:24 +00:00
|
|
|
#import "RNSScreen.h"
|
|
|
|
|
|
|
|
@interface RNSScreenWindowTraits : NSObject
|
|
|
|
|
|
|
|
+ (void)updateWindowTraits;
|
|
|
|
|
2024-10-29 07:36:43 +00:00
|
|
|
#if !TARGET_OS_TV && !TARGET_OS_VISION
|
2024-05-02 15:08:24 +00:00
|
|
|
+ (void)assertViewControllerBasedStatusBarAppearenceSet;
|
|
|
|
#endif
|
|
|
|
+ (void)updateStatusBarAppearance;
|
|
|
|
+ (void)enforceDesiredDeviceOrientation;
|
|
|
|
+ (void)updateHomeIndicatorAutoHidden;
|
|
|
|
|
|
|
|
#if !TARGET_OS_TV
|
|
|
|
+ (UIStatusBarStyle)statusBarStyleForRNSStatusBarStyle:(RNSStatusBarStyle)statusBarStyle;
|
|
|
|
+ (UIInterfaceOrientation)defaultOrientationForOrientationMask:(UIInterfaceOrientationMask)orientationMask;
|
|
|
|
+ (UIInterfaceOrientation)interfaceOrientationFromDeviceOrientation:(UIDeviceOrientation)deviceOrientation;
|
|
|
|
+ (UIInterfaceOrientationMask)maskFromOrientation:(UIInterfaceOrientation)orientation;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+ (BOOL)shouldAskScreensForTrait:(RNSWindowTrait)trait
|
|
|
|
includingModals:(BOOL)includingModals
|
|
|
|
inViewController:(UIViewController *)vc;
|
|
|
|
+ (BOOL)shouldAskScreensForScreenOrientationInViewController:(UIViewController *)vc;
|
|
|
|
|
|
|
|
@end
|