1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #pragma once
- @interface UnityRenderingView : UIView
- {
- }
- + (void)InitializeForAPI:(UnityRenderingAPI)api;
- @end
- @interface UnityView : UnityRenderingView
- {
- @private ScreenOrientation _curOrientation;
- @private BOOL _shouldRecreateView;
- @private BOOL _viewIsRotating;
- }
- - (id)initWithFrame:(CGRect)frame scaleFactor:(CGFloat)scale;
- - (id)initWithFrame:(CGRect)frame;
- - (id)initFromMainScreen;
- - (void)layoutSubviews;
- - (void)recreateRenderingSurfaceIfNeeded;
- - (void)recreateRenderingSurface;
- @property (nonatomic, readonly) ScreenOrientation contentOrientation;
- @end
- @interface UnityView (Deprecated)
- - (void)recreateGLESSurfaceIfNeeded __deprecated_msg("use recreateRenderingSurfaceIfNeeded instead.");
- - (void)recreateGLESSurface __deprecated_msg("use recreateRenderingSurface instead.");
- @end
- @interface UnityView (Keyboard)
- - (void)processKeyboard;
- @end
- @interface UnityView (UnityAppController)
- - (void)boundsUpdated;
- @end
- #if PLATFORM_IOS || PLATFORM_VISIONOS
- #include "UnityView+iOS.h"
- #elif PLATFORM_TVOS
- #include "UnityView+tvOS.h"
- #endif
- void ReportSafeAreaChangeForView(UIView* view);
- CGRect ComputeSafeArea(UIView* view);
- CGSize GetCutoutToScreenRatio();
|