Touchgui/plugins/org.apache.cordova.splashscreen/src/blackberry10/index.js

changeset 0
e8ccd40d0ef6
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Touchgui/plugins/org.apache.cordova.splashscreen/src/blackberry10/index.js	Thu Jun 04 14:50:33 2015 +0200
     1.3 @@ -0,0 +1,28 @@
     1.4 +/*
     1.5 + * Copyright 2013 Research In Motion Limited.
     1.6 + *
     1.7 + * Licensed under the Apache License, Version 2.0 (the "License");
     1.8 + * you may not use this file except in compliance with the License.
     1.9 + * You may obtain a copy of the License at
    1.10 + *
    1.11 + * http://www.apache.org/licenses/LICENSE-2.0
    1.12 + *
    1.13 + * Unless required by applicable law or agreed to in writing, software
    1.14 + * distributed under the License is distributed on an "AS IS" BASIS,
    1.15 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    1.16 + * See the License for the specific language governing permissions and
    1.17 + * limitations under the License.
    1.18 + */
    1.19 +
    1.20 +module.exports = {
    1.21 +    show: function (success, fail, args, env) {
    1.22 +        var result = new PluginResult(args, env);
    1.23 +        result.error("Not supported on platform", false);
    1.24 +    },
    1.25 +
    1.26 +    hide: function (success, fail, args, env) {
    1.27 +        var result = new PluginResult(args, env);
    1.28 +        window.qnx.webplatform.getApplication().windowVisible = true;
    1.29 +        result.ok(undefined, false);
    1.30 +    }
    1.31 +};

mercurial