Skip to content

Commit 396c085

Browse files
authored
chore: remove deprecated orientation methods (apache#666)
1 parent c01f037 commit 396c085

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

src/ios/CDVInAppBrowserNavigationController.m

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ - (BOOL)shouldAutorotate
6363
return YES;
6464
}
6565

66-
- (NSUInteger)supportedInterfaceOrientations
66+
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
6767
{
6868
if ((self.orientationDelegate != nil) && [self.orientationDelegate respondsToSelector:@selector(supportedInterfaceOrientations)]) {
6969
return [self.orientationDelegate supportedInterfaceOrientations];
@@ -72,14 +72,4 @@ - (NSUInteger)supportedInterfaceOrientations
7272
return 1 << UIInterfaceOrientationPortrait;
7373
}
7474

75-
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
76-
{
77-
if ((self.orientationDelegate != nil) && [self.orientationDelegate respondsToSelector:@selector(shouldAutorotateToInterfaceOrientation:)]) {
78-
return [self.orientationDelegate shouldAutorotateToInterfaceOrientation:interfaceOrientation];
79-
}
80-
81-
return YES;
82-
}
83-
84-
8575
@end

src/ios/CDVWKInAppBrowser.m

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ - (BOOL)shouldAutorotate
12271227
return YES;
12281228
}
12291229

1230-
- (NSUInteger)supportedInterfaceOrientations
1230+
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
12311231
{
12321232
if ((self.orientationDelegate != nil) && [self.orientationDelegate respondsToSelector:@selector(supportedInterfaceOrientations)]) {
12331233
return [self.orientationDelegate supportedInterfaceOrientations];
@@ -1236,14 +1236,4 @@ - (NSUInteger)supportedInterfaceOrientations
12361236
return 1 << UIInterfaceOrientationPortrait;
12371237
}
12381238

1239-
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
1240-
{
1241-
if ((self.orientationDelegate != nil) && [self.orientationDelegate respondsToSelector:@selector(shouldAutorotateToInterfaceOrientation:)]) {
1242-
return [self.orientationDelegate shouldAutorotateToInterfaceOrientation:interfaceOrientation];
1243-
}
1244-
1245-
return YES;
1246-
}
1247-
1248-
12491239
@end //CDVWKInAppBrowserViewController

0 commit comments

Comments
 (0)