mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
34 lines
661 B
JavaScript
34 lines
661 B
JavaScript
import {Engine} from '../engine';
|
|
|
|
|
|
Engine.register({
|
|
name: 'cordova',
|
|
isMatch() {
|
|
return !(!window.cordova && !window.PhoneGap && !window.phonegap);
|
|
},
|
|
ready() {
|
|
return new Promise(resolve => {
|
|
setTimeout(resolve, 1000);
|
|
});
|
|
},
|
|
fullScreen(shouldShow) {
|
|
return new Promise(resolve => {
|
|
setTimeout(function() {
|
|
resolve(shouldShow);
|
|
}, 1000);
|
|
});
|
|
},
|
|
showStatusBar(shouldShow) {
|
|
return new Promise(resolve => {
|
|
setTimeout(function() {
|
|
resolve(shouldShow);
|
|
}, 1000);
|
|
});
|
|
},
|
|
exitApp() {
|
|
return new Promise(resolve => {
|
|
setTimeout(resolve, 1000);
|
|
});
|
|
}
|
|
});
|