This commit is contained in:
39
node_modules/@dcloudio/uni-push/lib/gtpush-min.d.ts
generated
vendored
Normal file
39
node_modules/@dcloudio/uni-push/lib/gtpush-min.d.ts
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
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
|
||||
Reference in New Issue
Block a user