![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
cordova-plugin-launchscreen-storyboard
Advanced tools
A cordova plugin for using a launch screen storyboard as the splash screen instead of an image
A common use case for this plugin is to control the default CDVLaunchScreen
storyboard launch screen.
cordova plugin add cordova-plugin-launchscreen-storyboard
or via github
cordova plugin add https://github.com/toddbluhm/cordova-plugin-launchscreen-storyboard.git
Add the following code to your config.xml
to get the plugin with default settings:
<plugin name="cordova-plugin-launchscreen-storyboard" spec="~2.0.0" />
The following preferences can be configured:
<preference name="StoryboardName" value="YOUR_STORY_BOARD_NAME" />
<preference name="FadeOut" value="true" />
<preference name="FadeOutDuration" value="0.5" />
NOTE:
StoryboardName
must match the name of your "Launch Screen File" in Xcode, or a null-pointer exception will follow.
If your StoryboardName
is not CDVLaunchScreen
, you must specify it in your config.xml
.
Once the plugin is setup you must now tell it when to fade out. You can do this by setting up a handler in index.html
for the deviceready
event.
Something like the following should work:
document.addEventListener("deviceready", function() {
window.LaunchScreen.hide();
}, false);
StoryboardName
- The name of the storyboard that contains your launch screen view controller.
This will only instantiate the top level view controller in the storyboard. (Default: CDVLaunchScreen
)
FadeOut
- Enable/Disable the view fading out when its told to hide()
. This uses an EaseOut function.
FadeOutDuration
- How long should the fade out last (in seconds).
These are the javascript APIs exposed off of the window.LaunchScreen
object.
hide( callback )
- Hides the launch screen. Usually called in the deviceready
event handler. The callback
is called after the launch screen is fully hidden. callback
has an error
param which will be null
or an error object if an error occurred.
show( callback )
- Shows the launch screen. Should never need to be called in practice. The callback
is called after the launch screen is fully visible. callback
has an error
param which will be null
or an error object if an error occurred.
I welcome all pull requests. Before opening a PR please make sure to run the following script if you have modified any js files:
npm run lint
checks for code errors and formats according to js-standard2.0.0
CDVLaunchScreen
as that is now the most
common use caseFAQs
Cordova LaunchScreen Storyboard Plugin
The npm package cordova-plugin-launchscreen-storyboard receives a total of 6 weekly downloads. As such, cordova-plugin-launchscreen-storyboard popularity was classified as not popular.
We found that cordova-plugin-launchscreen-storyboard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.