OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #import <Foundation/Foundation.h> | 11 #import <Foundation/Foundation.h> |
12 | 12 |
13 NS_ASSUME_NONNULL_BEGIN | 13 NS_ASSUME_NONNULL_BEGIN |
14 // TODO(hjon): Update nullability types. See http://crbug/webrtc/5592 | 14 // TODO(hjon): Update nullability types. See http://crbug/webrtc/5592 |
15 | 15 |
16 @interface RTCIceServer : NSObject | 16 @interface RTCIceServer : NSObject |
17 | 17 |
18 /** URI(s) for this server represented as NSStrings. */ | 18 /** URI(s) for this server represented as NSStrings. */ |
19 @property(nonatomic, copy, readonly, nonnull) NSArray *urlStrings; | 19 @property(nonatomic, readonly, nonnull) NSArray *urlStrings; |
20 // @property(nonatomic, copy, readonly) NSArray<NSString *> *urlStrings; | 20 // @property(nonatomic, readonly) NSArray<NSString *> *urlStrings; |
21 | 21 |
22 /** Username to use if this RTCIceServer object is a TURN server. */ | 22 /** Username to use if this RTCIceServer object is a TURN server. */ |
23 @property(nonatomic, copy, readonly, nullable) NSString *username; | 23 @property(nonatomic, readonly, nullable) NSString *username; |
24 | 24 |
25 /** Credential to use if this RTCIceServer object is a TURN server. */ | 25 /** Credential to use if this RTCIceServer object is a TURN server. */ |
26 @property(nonatomic, copy, readonly, nullable) NSString *credential; | 26 @property(nonatomic, readonly, nullable) NSString *credential; |
27 | 27 |
28 - (nonnull instancetype)init NS_UNAVAILABLE; | 28 - (nonnull instancetype)init NS_UNAVAILABLE; |
29 | 29 |
30 /** Convenience initializer for a server with no authentication (e.g. STUN). */ | 30 /** Convenience initializer for a server with no authentication (e.g. STUN). */ |
31 - (nonnull instancetype)initWithURLStrings:(nonnull NSArray *)urlStrings; | 31 - (nonnull instancetype)initWithURLStrings:(nonnull NSArray *)urlStrings; |
32 // - (instancetype)initWithURLStrings:(NSArray<NSString *> *)urlStrings; | 32 // - (instancetype)initWithURLStrings:(NSArray<NSString *> *)urlStrings; |
33 | 33 |
34 /** | 34 /** |
35 * Initialize an RTCIceServer with its associated URLs, optional username, | 35 * Initialize an RTCIceServer with its associated URLs, optional username, |
36 * optional credential, and credentialType. | 36 * optional credential, and credentialType. |
37 */ | 37 */ |
38 - (nonnull instancetype)initWithURLStrings:(nonnull NSArray *)urlStrings | 38 - (nonnull instancetype)initWithURLStrings:(nonnull NSArray *)urlStrings |
39 // - (instancetype)initWithURLStrings:(NSArray<NSString *> *)urlStrings | 39 // - (instancetype)initWithURLStrings:(NSArray<NSString *> *)urlStrings |
40 username:(nullable NSString *)username | 40 username:(nullable NSString *)username |
41 credential:(nullable NSString *)credential | 41 credential:(nullable NSString *)credential |
42 NS_DESIGNATED_INITIALIZER; | 42 NS_DESIGNATED_INITIALIZER; |
43 | 43 |
44 @end | 44 @end |
45 | 45 |
46 NS_ASSUME_NONNULL_END | 46 NS_ASSUME_NONNULL_END |
OLD | NEW |