arnaucube
arnaucube/openEventsPlatformAppPublic Self-hosted repository
openEventsPlatformApp/plugins/cordova-plugin-statusbar/src/browser/StatusBarProxy.js
plugins/cordova-plugin-statusbar/src/browser/StatusBarProxy.jsRaw
 1/*
 2 * Licensed to the Apache Software Foundation (ASF) under one
 3 * or more contributor license agreements.  See the NOTICE file
 4 * distributed with this work for additional information
 5 * regarding copyright ownership.  The ASF licenses this file
 6 * to you under the Apache License, Version 2.0 (the
 7 * "License"); you may not use this file except in compliance
 8 * with the License.  You may obtain a copy of the License at
 9 *
10 *   http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied.  See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 *
19 */
20
21function notSupported(win,fail) {
22    //
23    console.log('StatusBar is not supported');
24    setTimeout(function(){
25        win();
26        // note that while it is not explicitly supported, it does not fail
27        // this is really just here to allow developers to test their code in the browser
28        // and if we fail, then their app might as well. -jm
29    },0);
30}
31
32module.exports = {
33    isVisible: false,
34    styleBlackTranslucent:notSupported,
35    styleDefault:notSupported,
36    styleLightContent:notSupported,
37    styleBlackOpaque:notSupported,
38    overlaysWebView:notSupported,
39    styleLightContect: notSupported,
40    backgroundColorByName: notSupported,
41    backgroundColorByHexString: notSupported,
42    hide: notSupported,
43    show: notSupported,
44    _ready:notSupported
45};
46
47require("cordova/exec/proxy").add("StatusBar", module.exports);
48