9 lines
642 B
Plaintext
9 lines
642 B
Plaintext
interface Push {
|
|
setRegistrationID(registrationID: string, onSuccess: () => void): void,
|
|
registerPush(SDKAppID: number, appKey: string, onSuccess: (data: string) => void, onError?: (errCode: number, errMsg: string) => void): void,
|
|
getRegistrationID(onSuccess: (registrationID: string) => void): void,
|
|
unRegisterPush(onSuccess: () => void, onError?: (errCode: number, errMsg: string) => void): void,
|
|
getNotificationExtInfo(onSuccess: (extInfo: string) => void): void
|
|
addPushListener(eventName: string, listener: (res: any) => void): void
|
|
removePushListener(eventName: string, listener?: (res: any) => void): void
|
|
} |