| 123456789101112131415161718192021222324252627282930313233343536373839 |
- /**
- * Copyright (c) 2015-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
- #import <XCTest/XCTest.h>
- NS_ASSUME_NONNULL_BEGIN
- #if !TARGET_OS_TV
- @interface XCUIDevice (FBRotation)
- /**
- Sets requested device interface orientation.
- @param orientation The interface orientation.
- @return YES if the operation succeeds, otherwise NO.
- */
- - (BOOL)fb_setDeviceInterfaceOrientation:(UIDeviceOrientation)orientation;
- /**
- Sets the devices orientation to the rotation passed.
-
- @param rotationObj The rotation defining the devices orientation.
- @return YES if the operation succeeds, otherwise NO.
- */
- - (BOOL)fb_setDeviceRotation:(NSDictionary *)rotationObj;
- /*! The UIDeviceOrientation to rotation mappings */
- @property (strong, nonatomic, readonly) NSDictionary *fb_rotationMapping;
- @end
- #endif
- NS_ASSUME_NONNULL_END
|