-
Notifications
You must be signed in to change notification settings - Fork 388
/
RtcEnginePlugin.h
31 lines (25 loc) · 1022 Bytes
/
RtcEnginePlugin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#import <Foundation/Foundation.h>
#import <AgoraRtcKit/AgoraRtcEngineKit.h>
NS_ASSUME_NONNULL_BEGIN
/**
* A `RtcEnginePlugin` allows developers to interact with the `RtcEngine` which created from flutter
* side.
*/
@protocol RtcEnginePlugin
/**
* This callback will be called when the `RtcEngine` is created by
[RtcEngine.createWithContext](https://docs.agora.io/cn/Video/API%20Reference/flutter/agora_rtc_engine/RtcEngine/createWithContext.html)
* function from flutter.
* NOTE that you should not call `AgoraRtcEngineKit.destroy`, because it will also destroy the `RtcEngine`
* used by flutter side.
*
* @param rtcEngine The same `AgoraRtcEngineKit` used by flutter side
*/
- (void)onRtcEngineCreated:(AgoraRtcEngineKit *_Nullable)rtcEngine;
/**
* This callback will be called when the [RtcEngine.destroy](https://docs.agora.io/cn/Video/API%20Reference/flutter/v4.0.7/rtc_channel/RtcChannel/destroy.html)
* function is called from flutter.
*/
- (void)onRtcEngineDestroyed;
@end
NS_ASSUME_NONNULL_END