File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,14 @@ simply hook `window.open` during initialization. For example:
68
68
window.open = cordova.InAppBrowser.open;
69
69
}
70
70
71
+ ### Preferences
72
+
73
+ #### <b >config.xml</b >
74
+ - <b >InAppBrowserStatusBarStyle [ iOS only] </b >: (string, options 'lightcontent' or 'default'. Defaults to 'default') set text color style for iOS.
75
+ ```
76
+ <preference name="InAppBrowserStatusBarStyle" value="lightcontent" />
77
+ ```
78
+
71
79
## cordova.InAppBrowser.open
72
80
73
81
Opens a URL in a new ` InAppBrowser ` instance, the current browser
Original file line number Diff line number Diff line change @@ -1055,7 +1055,12 @@ - (void)viewDidDisappear:(BOOL)animated
1055
1055
1056
1056
- (UIStatusBarStyle)preferredStatusBarStyle
1057
1057
{
1058
- return UIStatusBarStyleDefault;
1058
+ NSString * statusBarStylePreference = [self settingForKey: @" InAppBrowserStatusBarStyle" ];
1059
+ if (statusBarStylePreference && [statusBarStylePreference isEqualToString: @" lightcontent" ]) {
1060
+ return UIStatusBarStyleLightContent;
1061
+ } else {
1062
+ return UIStatusBarStyleDefault;
1063
+ }
1059
1064
}
1060
1065
1061
1066
- (BOOL )prefersStatusBarHidden {
You can’t perform that action at this time.
0 commit comments