0
3D Touch Native PluginをIonic 3アプリ3d-touchで使用しています。3Dタッチイオン3:ページを開く方法
3Dタッチメニューからアプリケーションを開いた後にページを開くにはどうすればよいですか?
でapp.component.ts
私のコード:
this.platform.ready().then(() => {
//3d Touch
this.threeDeeTouch.isAvailable().then((isAvailable) => {
if(isAvailable == true) {
let actions: Array<ThreeDeeTouchQuickAction> = [
{
type: 'projects',
title: 'Projects',
iconType: 'Bookmark'
},
{
type: 'messages',
title: 'Messages',
iconType: 'Message'
},
];
this.threeDeeTouch.configureQuickActions(actions);
this.threeDeeTouch.onHomeIconPressed().subscribe((payload) => {
alert(payload.type) ;
//!!!!OPEN PAGE!!!!
}) ;
}
});
}) ;