File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,8 @@ orientation can return one of:
270270- ` LANDSCAPE-LEFT ` camera left home button right
271271- ` LANDSCAPE-RIGHT ` camera right home button left
272272- ` PORTRAIT-UPSIDEDOWN `
273+ - ` FACE-UP `
274+ - ` FACE-DOWN `
273275- ` UNKNOWN `
274276
275- Notice: PORTRAIT-UPSIDEDOWN is currently not supported on iOS at the moment.
277+ Notice: PORTRAIT-UPSIDEDOWN is currently not supported on iOS at the moment. FACE-UP and FACE-DOWN are only supported on iOS.
Original file line number Diff line number Diff line change @@ -99,7 +99,17 @@ - (NSString *)getOrientationStr: (UIInterfaceOrientation)orientation {
9999
100100 orientationStr = @" PORTRAIT-UPSIDEDOWN" ;
101101 break ;
102-
102+
103+ case UIDeviceOrientationFaceUp:
104+
105+ orientationStr = @" FACE-UP" ;
106+ break ;
107+
108+ case UIDeviceOrientationFaceDown:
109+
110+ orientationStr = @" FACE-DOWN" ;
111+ break ;
112+
103113 default :
104114 orientationStr = @" UNKNOWN" ;
105115 break ;
Original file line number Diff line number Diff line change 66 * LICENSE file in the root directory of this source tree.
77 */
88
9- export type OrientationType = "PORTRAIT" | "PORTRAIT-UPSIDEDOWN" | "LANDSCAPE-LEFT" | "LANDSCAPE-RIGHT" | "UNKNOWN" ;
9+ export type OrientationType = "PORTRAIT" | "PORTRAIT-UPSIDEDOWN" | "LANDSCAPE-LEFT" | "LANDSCAPE-RIGHT" | "FACE-UP" | "FACE-DOWN" | " UNKNOWN";
1010
1111declare class Orientation {
1212 static addOrientationListener ( callback : ( orientation : OrientationType ) => void ) : void ;
You can’t perform that action at this time.
0 commit comments