@trtc/calls-uikit-react 4.4.5 → 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.
- package/package.json +3 -3
- package/src/Components/style/theme/_dark.scss +4 -4
- package/src/Components/style/theme/_light.scss +7 -7
- package/src/TUICallService/CallService/index.ts +15 -6
- package/src/TUICallService/serve/callManager.ts +6 -2
- package/src/TUICallService/utils/common-utils.ts +156 -11
- package/src/index.ts +1 -1
- package/tuicall-uikit-react.es.js +2543 -2499
- package/tuicall-uikit-react.umd.js +4 -4
- package/types/TUICallService/CallService/engineEventHandler.d.ts +1 -0
- package/types/TUICallService/utils/common-utils.d.ts +9 -0
|
@@ -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;
|