Minor ObjC header updates.
BUG=
Review URL: https://codereview.webrtc.org/1845133002
Cr-Commit-Position: refs/heads/master@{#12183}
diff --git a/webrtc/api/objc/RTCDataChannel.h b/webrtc/api/objc/RTCDataChannel.h
index 43f5767..59ab2b8 100644
--- a/webrtc/api/objc/RTCDataChannel.h
+++ b/webrtc/api/objc/RTCDataChannel.h
@@ -8,6 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
+#import <AvailabilityMacros.h>
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@@ -32,7 +33,6 @@
@class RTCDataChannel;
-
@protocol RTCDataChannelDelegate <NSObject>
/** The data channel state changed. */
@@ -43,7 +43,6 @@
didReceiveMessageWithBuffer:(RTCDataBuffer *)buffer;
@optional
-
/** The data channel's |bufferedAmount| changed. */
- (void)dataChannel:(RTCDataChannel *)dataChannel
didChangeBufferedAmount:(uint64_t)amount;
@@ -53,12 +52,13 @@
/** Represents the state of the data channel. */
typedef NS_ENUM(NSInteger, RTCDataChannelState) {
- RTCDataChannelStateConnecting,
- RTCDataChannelStateOpen,
- RTCDataChannelStateClosing,
- RTCDataChannelStateClosed,
+ RTCDataChannelStateConnecting,
+ RTCDataChannelStateOpen,
+ RTCDataChannelStateClosing,
+ RTCDataChannelStateClosed,
};
+
@interface RTCDataChannel : NSObject
/**
@@ -67,9 +67,16 @@
*/
@property(nonatomic, readonly) NSString *label;
+/** Whether the data channel can send messages in unreliable mode. */
+@property(nonatomic, readonly) BOOL isReliable DEPRECATED_ATTRIBUTE;
+
/** Returns whether this data channel is ordered or not. */
@property(nonatomic, readonly) BOOL isOrdered;
+/** Deprecated. Use maxPacketLifeTime. */
+@property(nonatomic, readonly) NSUInteger maxRetransmitTime
+ DEPRECATED_ATTRIBUTE;
+
/**
* The length of the time window (in milliseconds) during which transmissions
* and retransmissions may occur in unreliable mode.
@@ -92,6 +99,9 @@
*/
@property(nonatomic, readonly) BOOL isNegotiated;
+/** Deprecated. Use channelId. */
+@property(nonatomic, readonly) NSInteger streamId DEPRECATED_ATTRIBUTE;
+
/** The identifier for this data channel. */
@property(nonatomic, readonly) int channelId;