Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vipera-npm-registry / de-splashscreen-plugin   js

Repository URL to install this package:

Version: 0.0.4 

/ src / android / DefaultSplashScreenProvider.java

package com.vipera.splashscreen;

import com.vipera.de.utility.logging.impl.DELoggerFactory;

import org.apache.cordova.CordovaInterface;
import org.apache.cordova.CordovaPreferences;
import org.slf4j.Logger;

/**
 * Created by enrico on 24/02/17.
 */

public class DefaultSplashScreenProvider implements DESplashScreenProvider {
    private static final Logger LOGGER= DELoggerFactory.getLogger();
    private DESplashScreenHandler splashScreenHandler;
    public DefaultSplashScreenProvider(CordovaInterface cordova, CordovaPreferences preferences){
        LOGGER.debug("Create DefaultSplashScreenProvider");
        splashScreenHandler=new DESplashScreenHandler(cordova,preferences);
    }

    @Override
    public DESplashScreen provideSplashScreen() {
        LOGGER.debug("provideSplashScreen: {} ",splashScreenHandler);
        return splashScreenHandler;
    }

    @Override
    public void dispose() {
        this.splashScreenHandler = null;
    }

}