diff --git a/src/common/RtcEngine.native.ts b/src/common/RtcEngine.native.ts index 1c0309931..ef0419511 100644 --- a/src/common/RtcEngine.native.ts +++ b/src/common/RtcEngine.native.ts @@ -2486,6 +2486,15 @@ export default class RtcEngine implements RtcEngineInterface { restriction, }); } + + /** + * Gets the native handle of the SDK engine. + * + * This interface is used to retrieve the native C++ handle of the SDK engine used in special scenarios, such as registering the audio and video frame observer. + */ + getNativeHandle(): Promise { + return RtcEngine._callMethod('getNativeHandle'); + } } /** @@ -2560,6 +2569,8 @@ interface RtcEngineInterface setLogFileSize(fileSizeInKBytes: number): Promise; setParameters(parameters: string): Promise; + + getNativeHandle(): Promise; } /**