|
本帖最后由 高格信息 于 2023-9-26 17:55 编辑
对,切到后台了
function fnopen() {
var DTouch = api.require('3DTouch');
DTouch.setShortcutItems({
items: [{
type: 'com.api.testapp.favorite',
title: 'Favorites',
subtitle: 'tt',
// icon: {
// file: 'widget/image/open-favorites'
// },
userInfo: {
'key1': 'value1'
}
}, {
type: 'com.api**.**pose',
title: 'New Message',
subtitle: 'cc',
icon: {
type: 0
},
userInfo: {
'key2': 'value2'
}
}]
});
}
apiready = function () {
api.addEventListener({
name: 'appintent'
}, function (ret, err) {
alert(JSON.stringify(ret))
});
};
|
|