SplashScreenPlugin

hide

hide(options?: SplashScreenHideOptions, callback?: Function): Promise<void>
Hide the splash screen
options SplashScreenHideOptions
callback Function
Returns: Promise<void>

show

show(options?: SplashScreenShowOptions, callback?: Function): Promise<void>
Show the splash screen
options SplashScreenShowOptions
callback Function
Returns: Promise<void>

addListener

addListener(eventName: string, listenerFunc: Function): PluginListenerHandle
eventName string
listenerFunc Function
Returns: PluginListenerHandle

Interfaces Used

SplashScreenHideOptions

interface SplashScreenHideOptions {
// How long (in ms) to fade out. Default is 200ms
fadeOutDuration ?: number;
}

SplashScreenShowOptions

interface SplashScreenShowOptions {
// Whether to auto hide the splash after showDuration
autoHide ?: boolean;
// How long (in ms) to fade in. Default is 200ms
fadeInDuration ?: number;
// How long (in ms) to fade out. Default is 200ms
fadeOutDuration ?: number;
// How long to show the splash screen when autoHide is enabled (in ms) Default is 3000ms
showDuration ?: number;
}