10
10
@class FlutterRTCVideoRenderer;
11
11
@class FlutterRTCFrameCapturer;
12
12
13
- void postEvent (FlutterEventSink sink, id _Nullable event);
13
+ void postEvent (FlutterEventSink _Nonnull sink, id _Nullable event);
14
14
15
15
typedef void (^CompletionHandler)(void );
16
16
17
- typedef void (^CapturerStopHandler)(CompletionHandler handler);
17
+ typedef void (^CapturerStopHandler)(CompletionHandler _Nonnull handler);
18
18
19
19
@interface FlutterWebRTCPlugin : NSObject <FlutterPlugin,
20
20
RTCPeerConnectionDelegate,
@@ -26,43 +26,43 @@ typedef void (^CapturerStopHandler)(CompletionHandler handler);
26
26
#endif
27
27
>
28
28
29
- @property (nonatomic , strong ) RTCPeerConnectionFactory* peerConnectionFactory;
30
- @property (nonatomic , strong ) NSMutableDictionary <NSString*, RTCPeerConnection*>* peerConnections;
31
- @property (nonatomic , strong ) NSMutableDictionary <NSString*, RTCMediaStream*>* localStreams;
32
- @property (nonatomic , strong ) NSMutableDictionary <NSString*, RTCMediaStreamTrack*>* localTracks;
33
- @property (nonatomic , strong ) NSMutableDictionary <NSNumber*, FlutterRTCVideoRenderer*>* renders;
29
+ @property (nonatomic , strong ) RTCPeerConnectionFactory* _Nullable peerConnectionFactory;
30
+ @property (nonatomic , strong ) NSMutableDictionary <NSString*, RTCPeerConnection*>* _Nullable peerConnections;
31
+ @property (nonatomic , strong ) NSMutableDictionary <NSString*, RTCMediaStream*>* _Nullable localStreams;
32
+ @property (nonatomic , strong ) NSMutableDictionary <NSString*, RTCMediaStreamTrack*>* _Nullable localTracks;
33
+ @property (nonatomic , strong ) NSMutableDictionary <NSNumber*, FlutterRTCVideoRenderer*>* _Nullable renders;
34
34
@property (nonatomic , strong )
35
- NSMutableDictionary <NSString*, CapturerStopHandler>* videoCapturerStopHandlers;
35
+ NSMutableDictionary <NSString*, CapturerStopHandler>* _Nullable videoCapturerStopHandlers;
36
36
37
- @property (nonatomic , strong ) NSMutableDictionary <NSString*, RTCFrameCryptor*>* frameCryptors;
38
- @property (nonatomic , strong ) NSMutableDictionary <NSString*, RTCFrameCryptorKeyProvider*>* keyProviders;
37
+ @property (nonatomic , strong ) NSMutableDictionary <NSString*, RTCFrameCryptor*>* _Nullable frameCryptors;
38
+ @property (nonatomic , strong ) NSMutableDictionary <NSString*, RTCFrameCryptorKeyProvider*>* _Nullable keyProviders;
39
39
40
40
#if TARGET_OS_IPHONE
41
41
@property (nonatomic , retain ) UIViewController* viewController; /* for broadcast or ReplayKit */
42
42
#endif
43
43
44
- @property (nonatomic , strong ) FlutterEventSink eventSink;
45
- @property (nonatomic , strong ) NSObject <FlutterBinaryMessenger>* messenger;
46
- @property (nonatomic , strong ) RTCCameraVideoCapturer* videoCapturer;
47
- @property (nonatomic , strong ) FlutterRTCFrameCapturer* frameCapturer;
48
- @property (nonatomic , strong ) AVAudioSessionPort preferredInput;
44
+ @property (nonatomic , strong ) FlutterEventSink _Nullable eventSink;
45
+ @property (nonatomic , strong ) NSObject <FlutterBinaryMessenger>* _Nonnull messenger;
46
+ @property (nonatomic , strong ) RTCCameraVideoCapturer* _Nullable videoCapturer;
47
+ @property (nonatomic , strong ) FlutterRTCFrameCapturer* _Nullable frameCapturer;
48
+ @property (nonatomic , strong ) AVAudioSessionPort _Nullable preferredInput;
49
49
@property (nonatomic ) BOOL _usingFrontCamera;
50
50
@property (nonatomic ) NSInteger _lastTargetWidth;
51
51
@property (nonatomic ) NSInteger _lastTargetHeight;
52
52
@property (nonatomic ) NSInteger _lastTargetFps;
53
53
54
- - (RTCMediaStream*)streamForId : (NSString *)streamId peerConnectionId : (NSString *)peerConnectionId ;
55
- - (RTCRtpTransceiver*)getRtpTransceiverById : (RTCPeerConnection*)peerConnection Id : (NSString *)Id ;
56
- - (NSDictionary *)mediaStreamToMap : (RTCMediaStream*)stream ownerTag : (NSString *)ownerTag ;
57
- - (NSDictionary *)mediaTrackToMap : (RTCMediaStreamTrack*)track ;
58
- - (NSDictionary *)receiverToMap : (RTCRtpReceiver*)receiver ;
59
- - (NSDictionary *)transceiverToMap : (RTCRtpTransceiver*)transceiver ;
54
+ - (RTCMediaStream* _Nullable )streamForId : (NSString * _Nonnull )streamId peerConnectionId : (NSString * _Nonnull )peerConnectionId ;
55
+ - (RTCRtpTransceiver* _Nullable )getRtpTransceiverById : (RTCPeerConnection* _Nonnull )peerConnection Id : (NSString * _Nonnull )Id ;
56
+ - (NSDictionary * _Nullable )mediaStreamToMap : (RTCMediaStream* _Nonnull )stream ownerTag : (NSString * _Nonnull )ownerTag ;
57
+ - (NSDictionary * _Nullable )mediaTrackToMap : (RTCMediaStreamTrack* _Nonnull )track ;
58
+ - (NSDictionary * _Nullable )receiverToMap : (RTCRtpReceiver* _Nonnull )receiver ;
59
+ - (NSDictionary * _Nullable )transceiverToMap : (RTCRtpTransceiver* _Nonnull )transceiver ;
60
60
61
61
- (BOOL )hasLocalAudioTrack ;
62
62
- (void )ensureAudioSession ;
63
63
- (void )deactiveRtcAudioSession ;
64
64
65
- - (RTCRtpReceiver*)getRtpReceiverById : (RTCPeerConnection*)peerConnection Id : (NSString *)Id ;
66
- - (RTCRtpSender*)getRtpSenderById : (RTCPeerConnection*)peerConnection Id : (NSString *)Id ;
65
+ - (RTCRtpReceiver* _Nullable )getRtpReceiverById : (RTCPeerConnection* _Nonnull )peerConnection Id : (NSString * _Nonnull )Id ;
66
+ - (RTCRtpSender* _Nullable )getRtpSenderById : (RTCPeerConnection* _Nonnull )peerConnection Id : (NSString * _Nonnull )Id ;
67
67
68
68
@end
0 commit comments