Skip to content

muhammadosmanali/capacitor-lottie-splash-screen

 
 

Repository files navigation

@capacitor/lottie-splash-screen

Lottie splash screen plugin for capacitor

Install

npm install git+https://github.com/muhammadosmanali/capacitor-lottie-splash-screen.git
npx cap sync

Add to capacitor.config.ts or capcitor.config.json

CapacitorLottieSplashScreen: {
  Enabled: true,
  LottieAnimationLocation: "public/[web/path/to.json]"
}

if you were previously using Capacitor Splash Screen set the following in you capacitor config

SplashScreen: {
  launchAutoHide: true,
  launchShowDuration: 0,
},

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
Param Type
options { value: string; }

Returns: Promise<{ value: string; }>


appLoaded()

appLoaded() => Promise<any>

Indicate to the plugin that the app has loaded.

Run as early as possible when your app is loaded. This will ensure that on animation end the layer of the splash screen is removed and touch interactions will go to the app.

Returns: Promise<any>


isAnimating()

isAnimating() => Promise<{ isAnimating: boolean; }>

Returns: Promise<{ isAnimating: boolean; }>


addListener('onAnimationEnd', ...)

addListener(eventName: 'onAnimationEnd', listenerFunc: () => void) => Promise<PluginListenerHandle>
Param Type
eventName 'onAnimationEnd'
listenerFunc () => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


Interfaces

PluginListenerHandle

Prop Type
remove () => Promise<void>

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 44.0%
  • Swift 31.1%
  • TypeScript 10.2%
  • Ruby 6.4%
  • Objective-C 5.3%
  • JavaScript 3.0%