Variables
Const Prefix
Prefix: string = ZegoExpressNativeEngineMoudle.prefix()
Const ZegoEvent
ZegoEvent: { addEventListener: (event: string, callback: Function) => void; removeEventListener: (event: string, callback?: Function) => void } = uni.requireNativePlugin('globalEvent')
Type declaration
-
addEventListener: (event: string, callback: Function) => void
-
- (event: string, callback: Function): void
-
Parameters
-
event: string
-
callback: Function
Returns void
-
removeEventListener: (event: string, callback?: Function) => void
-
- (event: string, callback?: Function): void
-
Parameters
-
event: string
-
Optional callback: Function
Returns void
Const ZegoExpressNativeEngineMoudle
ZegoExpressNativeEngineMoudle: { callMethod: (params: {}, callback: (res: any) => void) => void; prefix: () => string } = uni.requireNativePlugin('zego-ZegoExpressUniAppSDK_ZegoExpressUniAppEngine')
Type declaration
-
callMethod: (params: {}, callback: (res: any) => void) => void
-
- (params: {}, callback: (res: any) => void): void
-
Parameters
-
params: {}
-
callback: (res: any) => void
Returns void
-
prefix: () => string
Let engine