uni-ticket-system/node_modules/@dcloudio/uni-push/lib/gtpush-min.d.ts

40 lines
839 B
TypeScript
Raw Normal View History

2023-12-05 02:11:10 +00:00
declare namespace GtPush {
/**
*
* @param debugMode
*/
function setDebugMode(debugMode: boolean): void
/**
* socket
* @param enable
*/
function enableSocket(enable: boolean): void
/**
* GtPush
*/
function init(obj: {
/**
* appid
*/
appid: string
/**
*
*/
onError?: (res: { error: any }) => void
/**
* ID回调
*/
onClientId?: (res: { cid: string }) => void
/**
* ID在线状态回调
*/
onlineState?: (res: { online: boolean }) => void
/**
*
*/
onPushMsg?: (res: { message: string }) => void
}): void
}
export default GtPush