Files
Hippy/framework/ios/base/HippyDeviceBaseInfo.h
wwwcg 0e3517fdbe feat(ios)!: bind window info of Dimensions API to the RootView (#4296)
* feat(ios): update Dimensions window info after RootSize changes

dimensions now following the size changes of RootView
Meanwhile, a new "appwindow" has been added to retain the original window concept

* refactor(ios): code update in waterfall layout

BREAKING CHANGE: window info in Dimensions is changed in some case by default
2025-05-06 21:07:00 +08:00

41 lines
1.3 KiB
Objective-C

/*!
* iOS SDK
*
* Tencent is pleased to support the open source community by making
* Hippy available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#import <Foundation/Foundation.h>
#import "HippyBridgeModule.h"
NS_ASSUME_NONNULL_BEGIN
HIPPY_EXTERN NSDictionary *hippyExportedDimensions(HippyBridge * _Nonnull bridge,
NSValue * _Nullable rootSizeValue);
HIPPY_EXTERN NSString *const HippyDimensionsShouldUpdateNotification;
/// A Helper class that collects `Dimensions` info
@interface HippyDeviceBaseInfo : NSObject <HippyBridgeModule>
/// Whether is UIScreen in system dark mode.
+ (BOOL)isUIScreenInOSDarkMode;
@end
NS_ASSUME_NONNULL_END