mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
78 lines
1.2 KiB
TypeScript
78 lines
1.2 KiB
TypeScript
import JPush from 'jpush-react-native';
|
|
|
|
JPush.initPush();
|
|
|
|
JPush.stopPush();
|
|
|
|
JPush.resumePush();
|
|
|
|
JPush.clearAllNotifications();
|
|
|
|
JPush.clearNotificationById('id');
|
|
|
|
JPush.getInfo((map) => {});
|
|
|
|
JPush.setTags(
|
|
['tag1', 'tag2'],
|
|
() => {},
|
|
() => {},
|
|
);
|
|
|
|
JPush.setAlias(
|
|
'alias',
|
|
() => {},
|
|
() => {},
|
|
);
|
|
|
|
JPush.setAliasAndTags(
|
|
'alias',
|
|
['tag1', 'tag2'],
|
|
() => { },
|
|
() => { },
|
|
);
|
|
|
|
JPush.setStyleBasic();
|
|
|
|
JPush.setStyleCustom();
|
|
|
|
JPush.addReceiveCustomMsgListener(() => {});
|
|
|
|
JPush.removeReceiveCustomMsgListener(() => {});
|
|
|
|
JPush.addReceiveNotificationListener(() => {});
|
|
|
|
JPush.removeReceiveNotificationListener(() => {});
|
|
|
|
JPush.addReceiveOpenNotificationListener(() => {});
|
|
|
|
JPush.removeReceiveOpenNotificationListener(() => {});
|
|
|
|
JPush.addGetRegistrationIdListener((registrationId) => {});
|
|
|
|
JPush.removeGetRegistrationIdListener(() => {});
|
|
|
|
JPush.getRegistrationID((registrationId) => {});
|
|
|
|
JPush.setupPush();
|
|
|
|
JPush.getAppkeyWithcallback((appKey) => {});
|
|
|
|
JPush.setLocalNotification(
|
|
new Date(),
|
|
'body',
|
|
);
|
|
|
|
JPush.setLocalNotification(
|
|
new Date(),
|
|
'body',
|
|
2,
|
|
'action',
|
|
'key',
|
|
{
|
|
name: 'name',
|
|
},
|
|
'sound',
|
|
);
|
|
|
|
JPush.setBadge(1, () => {});
|