GitToTheHub commented on code in PR #1670:
URL: https://github.com/apache/cordova-ios/pull/1670#discussion_r3458924478
##########
cordova-js-src/plugin/ios/statusbar.js:
##########
@@ -52,6 +52,13 @@ Object.defineProperty(statusBar, 'visible', {
}
});
+/**
+ * Sets the background color of the status bar, which will visually only have
an impact,
+ * if the status bar is visible. The supported format is any valid CSS color
value,
+ * like `rebeccapurple`, `#RRGGBBAA`, `rgb(255 0 153)`.
+ * If cordova-plugin-statusbar is installed, the call will be forwarded to
+ * `window.StatusBar.backgroundColorByHexString`, which will not support an
alpha value.
+ */
Review Comment:
> MO, the alpha limitation comment is not necessary here. While it may be
unlikely, if the implementation detail of the plugin changes, it could make the
comment obsolete. Instead, I thought including the plugin doc link would be
nice way to avoid this.
I think also that implementation detail of the plugin will not change. I
wanted to make things easy to understand, without needing to read the
implementation details on the doc. I don't know what is best. Maybe @dpogue has
also an opinion. I'm not sad if the link is added instead of the alpha detail.
Otherwise you simplifications look good.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]