本文整理汇总了TypeScript中ionic-native.Splashscreen.hide方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Splashscreen.hide方法的具体用法?TypeScript Splashscreen.hide怎么用?TypeScript Splashscreen.hide使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ionic-native.Splashscreen
的用法示例。
在下文中一共展示了Splashscreen.hide方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: initializeIosApp
initializeIosApp(){
//this.confData.load();
this.rootPage = SlidePage;
this.initializePush();
Globalization.getPreferredLanguage().then((obj) =>{//get device language
console.log(obj.value);
this.initializeTranslateServiceConfig(obj.value.split('-')[0]);//initialize sending lowercase language
}, (err)=>{
console.log(err);
this.initializeTranslateServiceConfig(defaultLanguage);//initialize sending lowercase language default
});
Splashscreen.hide();
}
示例2: alert
$timeout(function () {
Splashscreen.hide();
let push = Push.init({
ios: {
alert: "true",
badge: true,
sound: 'false'
}
});
push.on('registration', (data) => {
$http.post("http://192.168.200.169:3001/registrationIds", {registrationId: data.registrationId}).then(function () {
alert("This device whose registrationId is: " + data.registrationId + " is now registered!");
}, function (e) {
alert(JSON.stringify(e));
});
});
push.on('error', (e) => {
alert(e.message);
});
}, 500);
示例3:
platform.ready().then(() => {
StatusBar.styleDefault();
Splashscreen.hide();
// 推送相关
this.handleJPush();
// 用户进入APP自动登陆
AKStorage.load(AKStorage.CURRENT_USER).then(user => {
// TODO 修改自动登录方式,token验证
if (user && user.tel) this.userService.autoLogin(user.tel);
});
// 订阅用户登录的事件
this.events.subscribe('user:login', (data) => {
this.showLoginPage(data && data.length ? data[0] : data);
});
// 监听用户打开通知栏的操作
this.registerOpenNotification();
});
示例4: resumeApplication
/**
*
*/
async function resumeApplication( redirectTo?: string, deviceReady: boolean = false ) {
try {
if ( !authenticationService.user.anonymous ) {
await authenticationService.refreshAccessTokenIfNeeded();
}
pushService.init();
if ( redirectTo ) {
transitionService.changeRootState( redirectTo );
}
}
catch ( error ) {
if ( error.message !== 'no-token' ) {
authenticationService.logout(() => transitionService.changeRootState( 'home' ) );
} else if ( deviceReady ) {
pushService.init();
transitionService.changeRootState( 'home' );
}
}
finally {
Splashscreen.hide();
}
}
示例5:
this.platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
//StatusBar.styleDefault();
Splashscreen.hide();
});
示例6: if
//.........这里部分代码省略.........
CliNo = actions[action][field];
}
if(field == 'gItemID') {
gItemID = actions[action][field];
}
if(field == 'DSLNetwork') {
DSLNetwork = actions[action][field];
}
if(field == 'Supplier_ServiceID') {
Supplier_ServiceID = actions[action][field];
}
if(field == 'dslLineId') {
dslLineId = actions[action][field];
}
}
}
}
}
})
}
//if user using app and push notification comes
if (data.additionalData.foreground) {
// if application open, show popup
if(page == 'reset_data_port')
{
let confirmAlert = this.alertCtrl.create({
title: 'New Notification',
message: data.message,
buttons: ['OK']
});
confirmAlert.present();
}
else
{
let confirmAlert = this.alertCtrl.create({
title: 'New Notification',
message: data.message,
buttons: [{
text: 'Ignore',
role: 'cancel'
}, {
text: 'View',
handler: () => {
//TO DO: Your logic here
if(page == 'change_line_profile')
{
this.nav.push(ChangeLineProfilePage, {CliNo:CliNo, ServiceID:ServiceID});
}
else if(page == 'dslam_status')
{
this.nav.push(DslamStatusPage, {CliNo:CliNo, gItemID:gItemID, DSLNetwork:DSLNetwork, Supplier_ServiceID:Supplier_ServiceID, dslLineId:dslLineId});
}
}
}]
});
confirmAlert.present();
}
} else {
//if user NOT using app and push notification comes
//TO DO: Your logic on click of push notification directly
//self.nav.push(SomeComponent, {message:data.message});
console.log("Push notification clicked");
}
});
push.on('error', (e) => {
console.log(e.message);
});*/
StatusBar.styleDefault();
Splashscreen.hide();
//this.platform.registerBackButtonAction(function() { this.registerBackButtonListener(); });
/*this.platform.registerBackButtonAction(() => {
if (!this.nav.canGoBack()) {
if(this.dialogOpened == false)
{
this.Logout('exit');
return;
}
}
else {
this.nav.pop();
}
}, 501);*/
/*document.addEventListener('backbutton', () => {
if (!this.nav.canGoBack()) {
this.Logout('exit');
}
else {
this.nav.pop();
}
}, false);*/
});
示例7:
platform.ready().then(() => {
StatusBar.styleDefault();
Splashscreen.hide();
// this.nav.popToRoot();
this.nav.push(TabsPage)
});
示例8: setTimeout
setTimeout(() => Splashscreen.hide(), 100);
示例9:
platform.ready().then(() => {
Splashscreen.hide();
});
示例10:
this.platform.ready().then(async () => {
Splashscreen.show();
await Logger.setLebelByVersionNumber();
this.rootPage = AcceptancePage.isAccepted() ? ReportsListPage : AcceptancePage;
Splashscreen.hide();
});