forked from appium/WebDriverAgent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXCUIDevice+FBRotation.h
More file actions
38 lines (28 loc) · 958 Bytes
/
XCUIDevice+FBRotation.h
File metadata and controls
38 lines (28 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* 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.
*/
#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