Skip to content

Commit 0c6189e

Browse files
change hidetoolbarnavigationbuttons to hidenavigationbuttons in iso
1 parent d940b59 commit 0c6189e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ instance, or the system browser.
119119
- __hidenavigationbuttons__: set to `yes` to hide the navigation buttons on the location toolbar, only has effect if user has location set to `yes`. The default value is `no`.
120120
- __hideurlbar__: set to `yes` to hide the url bar on the location toolbar, only has effect if user has location set to `yes`. The default value is `no`.
121121
- __navigationbuttoncolor__: set to a valid hex color string, for example: `#00ff00`, and it will change the color of both navigation buttons from default. Only has effect if user has location set to `yes` and not hidenavigationbuttons set to `yes`.
122+
- __toolbarcolor__: set to a valid hex color string, for example: `#00ff00`, and it will change the color the toolbar from default. Only has effect if user has location set to `yes`.
122123
- __zoom__: set to `yes` to show Android browser's zoom controls, set to `no` to hide them. Default value is `yes`.
123124
- __mediaPlaybackRequiresUserAction__: Set to `yes` to prevent HTML5 audio or video from autoplaying (defaults to `no`).
124125
- __shouldPauseOnSuspend__: Set to `yes` to make InAppBrowser WebView to pause/resume with the app to stop background audio (this may be required to avoid Google Play issues like described in [CB-11013](https://issues.apache.org/jira/browse/CB-11013)).
@@ -132,7 +133,7 @@ instance, or the system browser.
132133
- __closebuttoncolor__: set as a valid hex color string, for example: `#00ff00`, to change from the default __Done__ button's color. Only applicable if toolbar is not disabled.
133134
- __closebuttoncaption__: set to a string to use as the __Done__ button's caption. Note that you need to localize this value yourself.
134135
- __disallowoverscroll__: Set to `yes` or `no` (default is `no`). Turns on/off the UIWebViewBounce property.
135-
- __hidetoolbarnavigationbuttons__: set to `yes` or `no` to turn the toolbar navigation buttons on or off (defaults to `no`). Only applicable if toolbar is not disabled.
136+
- __hidenavigationbuttons__: set to `yes` or `no` to turn the toolbar navigation buttons on or off (defaults to `no`). Only applicable if toolbar is not disabled.
136137
- __toolbar__: set to `yes` or `no` to turn the toolbar on or off for the InAppBrowser (defaults to `yes`)
137138
- __toolbarcolor__: set as a valid hex color string, for example: `#00ff00`, to change from the default color of the toolbar. Only applicable if toolbar is not disabled.
138139
- __toolbartranslucent__: set to `yes` or `no` to make the toolbar translucent(semi-transparent) (defaults to `yes`). Only applicable if toolbar is not disabled.

src/ios/CDVInAppBrowser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
@property (nonatomic, copy) NSString* toolbarposition;
5454
@property (nonatomic, copy) NSString* toolbarcolor;
5555
@property (nonatomic, assign) BOOL toolbartranslucent;
56-
@property (nonatomic, assign) BOOL hidetoolbarnavigationbuttons;
56+
@property (nonatomic, assign) BOOL hidenavigationbuttons;
5757
@property (nonatomic, assign) BOOL clearcache;
5858
@property (nonatomic, assign) BOOL clearsessioncache;
5959

src/ios/CDVInAppBrowser.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ - (void)createViews
649649
self.backButton.imageInsets = UIEdgeInsetsZero;
650650

651651
// Filter out Navigation Buttons if user requests so
652-
if (_browserOptions.hidetoolbarnavigationbuttons) {
652+
if (_browserOptions.hidenavigationbuttons) {
653653
[self.toolbar setItems:@[self.closeButton, flexibleSpaceButton]];
654654
} else {
655655
[self.toolbar setItems:@[self.closeButton, flexibleSpaceButton, self.backButton, fixedSpaceButton, self.forwardButton]];
@@ -1020,7 +1020,7 @@ - (id)init
10201020
self.suppressesincrementalrendering = NO;
10211021
self.hidden = NO;
10221022
self.disallowoverscroll = NO;
1023-
self.hideToolbarnavigationbuttons = NO;
1023+
self.hidenavigationbuttons = NO;
10241024
self.closebuttoncolor = nil;
10251025
self.toolbarcolor = nil;
10261026
self.toolbartranslucent = YES;

0 commit comments

Comments
 (0)