Git Product home page Git Product logo

cordova-plugin-splashscreen's Introduction

title description
Splashscreen 插件扩展
在原有插件基础上扩展了启动时加载广告图片的功能。仅支持Android iOS

原理

在App启动时,Splashscreen插件会先去检查应用缓存目录下是否存在图片文件,如果有则加载这个图片;如果没有就加载原来设置的启动页

广告图片存放位置

请将需要显示的广告图片放在,缓存下面的 ads/ad.jpg中
android路径:context.getCacheDir()+"/ads/ad.jpg"
    iOS路径:NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
            NSString *path = [[paths objectAtIndex:0] stringByAppendingString:@"/ads/ad.jpg"];

cordova-plugin-splashscreen's People

Contributors

stevengill avatar shazron avatar agrieve avatar purplecabbage avatar ldeluca avatar clelland avatar sgrebnov avatar siovene avatar cmarcelk avatar dpolivy avatar csantanapr avatar huangliop avatar dblotsky avatar infil00p avatar vladimir-kotikov avatar stacic avatar sarangan12 avatar kerrishotts avatar hardeep avatar bennmapes avatar weexpectedthis avatar t1st3 avatar mbillau avatar hermwong avatar wilsonpinto avatar theju avatar seanbollin avatar cfjedimaster avatar nikhilkh avatar mulhoon avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.