@trtc/calls-uikit-react 4.4.6 → 4.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  export default class EngineEventHandler {
2
2
  static instance: EngineEventHandler;
3
3
  private _callService;
4
+ private _isCallNotConnected;
4
5
  constructor(options: any);
5
6
  static getInstance(options: any): EngineEventHandler;
6
7
  addListenTuiCallEngineEvent(): void;
@@ -10,6 +10,7 @@ export default class TUIGlobal implements ITUIGlobal {
10
10
  isOfficial: boolean;
11
11
  isWIN: boolean;
12
12
  isMAC: boolean;
13
+ isWxHarmony: boolean;
13
14
  constructor();
14
15
  /**
15
16
  * 获取 TUIGlobal 实例
@@ -9,6 +9,7 @@
9
9
  * @property {Boolean} isOfficial true 标识是腾讯云官网 Demo 应用
10
10
  * @property {Boolean} isWIN true 标识是window系统pc
11
11
  * @property {Boolean} isMAC true 标识是mac os系统pc
12
+ * @property {Boolean} isWxHarmony true 标识是微信小程序运行在鸿蒙系统
12
13
  */
13
14
  export interface ITUIGlobal {
14
15
  global: any;
@@ -20,6 +21,7 @@ export interface ITUIGlobal {
20
21
  isOfficial: boolean;
21
22
  isWIN: boolean;
22
23
  isMAC: boolean;
24
+ isWxHarmony: boolean;
23
25
  /**
24
26
  * 初始化 TUIGlobal 环境变量
25
27
  * @function
@@ -59,4 +59,13 @@ export declare function modifyObjectKey(obj: any, oldKey: any, newKey: any): any
59
59
  *
60
60
  */
61
61
  export declare function interpolate(str: any, data: any): any;
62
+ /**
63
+ * Enhanced browser/webview close detection for exception exit handling
64
+ * Supports: PC browsers (Chrome/Safari/Firefox/Edge), Mobile browsers (Android/iOS), WebView
65
+ *
66
+ * Note: Mobile background switching (visibilitychange to hidden) will NOT trigger hangup,
67
+ * only actual page close/navigation events will trigger the callback.
68
+ *
69
+ * @param callback - Function to call when exit is detected
70
+ */
62
71
  export declare function initBrowserCloseDetection(callback: Function): void;
@@ -8,3 +8,5 @@ export declare const IS_H5: boolean;
8
8
  export declare const IS_PC: boolean;
9
9
  export declare const IS_WIN: any;
10
10
  export declare const IS_MAC: any;
11
+ declare let IS_WX_HARMONY: boolean;
12
+ export { IS_WX_HARMONY };