Skip to content

doc(statusbar.js): document visible property and setBackgroundColor method#1961

Merged
GitToTheHub merged 5 commits into
masterfrom
pr-doc-statusbar.js-setBackgroundColor
Jul 6, 2026
Merged

doc(statusbar.js): document visible property and setBackgroundColor method#1961
GitToTheHub merged 5 commits into
masterfrom
pr-doc-statusbar.js-setBackgroundColor

Conversation

@GitToTheHub

@GitToTheHub GitToTheHub commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Platforms affected

Motivation and Context

  • Document visible property that it will not work when Android EdgeToEdge is enabled.
  • Document that the supported format for setBackgroundColor is any valid CSS color and adding some examples.
  • If cordova-plugin-statusbar is installed, the call will be forwarded to window.StatusBar.backgroundColorByHexString , where alpha is only supported if StatusBar.overlaysWebView is set to true.

Description

Testing

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change
  • Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
  • If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
  • I've updated the documentation if necessary

@codecov-commenter

codecov-commenter commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.43%. Comparing base (dd3fd35) to head (c8d4791).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1961   +/-   ##
=======================================
  Coverage   61.43%   61.43%           
=======================================
  Files          24       24           
  Lines        4922     4922           
=======================================
  Hits         3024     3024           
  Misses       1898     1898           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@GitToTheHub GitToTheHub changed the title doc(statusbar.js): document setBackgroundColor() doc(statusbar.js): document setBackgroundColor() and visible property Jun 23, 2026
@GitToTheHub GitToTheHub changed the title doc(statusbar.js): document setBackgroundColor() and visible property doc(statusbar.js): document visible property and setBackgroundColor method Jun 23, 2026
- It will also not work with Android EdgeToEdge and the plugin on Android 14/15/16. It worked on Android 9/10 but maybe this is not worth to mention
- To make it inline with the iOS documentation of PR apache/cordova-ios#1670
@GitToTheHub GitToTheHub merged commit 50ee09e into master Jul 6, 2026
4 of 25 checks passed
@GitToTheHub GitToTheHub deleted the pr-doc-statusbar.js-setBackgroundColor branch July 6, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants