[ 
https://issues.apache.org/jira/browse/CB-4853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jesse MacFadyen resolved CB-4853.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 3.6.0

https://github.com/apache/cordova-plugin-splashscreen/blob/master/src/wp/SplashScreen.cs#L124

Implemented, and available in 3.6.0 version of cordova-wp8

> Auto show splashScreen
> ----------------------
>
>                 Key: CB-4853
>                 URL: https://issues.apache.org/jira/browse/CB-4853
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: WP8
>    Affects Versions: 3.0.0
>         Environment: Any
>            Reporter: Jonathan Naguin
>            Assignee: Jesse MacFadyen
>            Priority: Minor
>              Labels: splashscreen, wp8
>             Fix For: 3.6.0
>
>
> Add the ability of automatically show the spashScreen when the app is loading 
> as Android does, for example.
> ---
> I think that with this code on "MainPage.xaml.cs" is done:
> {code}
> private void showSplashScreen(int wait_ms)
> {
>     var plugin = 
> WPCordovaClassLib.Cordova.CommandFactory.CreateByServiceName("SplashScreen");
>     
>     if (plugin != null){
>         plugin.InvokeMethodNamed("show", new object[] { String.Empty });
>         System.Threading.Timer timer = null;
>         timer = new System.Threading.Timer(
>             callback => {
>                 plugin.InvokeMethodNamed("hide", new object[] { String.Empty 
> });
>                 timer.Dispose();
>             },
>             null,
>             wait_ms,
>             System.Threading.Timeout.Infinite
>         );
>     }
> }
> public MainPage(){
>     ...
>     this.showSplashScreen(20000);
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to