0
나는 3D Touch Native Plugin을 이온 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!!!!
}) ;
}
});
}) ;