@trtc/calls-uikit-react 4.4.6 → 4.4.7

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;
@@ -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;