cordova-plugin-splashscreen
cordova-plugin-splashscreen copied to clipboard
applied changes in SplashScreen that allows get ScaleType and backgroundColor from preferences
Platforms affected
Android
Motivation and Context
Need to set ScaleType of splashscreen, and with this, the backgroundColor is also needed.
Description
With this changes, only thing you need to do is set the preferences on config.xml. To make things easier, hexadecimal colors can be used in preferences "#FFFFFF". example: preference name="SplashScaleType" value="CENTER_INSIDE" preference name="SplashBackgroundColor" value="#232323" if no preferences, FIT_XY and #FFFFFF will be the default.
Checklist
- [x] 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
This looks like a breaking change. Please explain more why this is needed. I don't fully understand the changes.