iOS SDK API リファレンス

SKWConnection.h
[詳解]
1 // SKWConnection.h
3 // SkyWay SDK
5 #import <Foundation/Foundation.h>
6 #import "SKWCommon.h"
7 
12 @class SKWPeer;
13 
17 typedef NS_ENUM(NSUInteger, SKWSerializationEnum)
18 {
27 };
28 
52 typedef void (^SKWConnectionGetStatsCallback)(NSArray* __nullable stats);
53 
54 
62 @interface SKWConnection : NSObject
63 
67 @property (nonatomic, readonly) NSString* __nullable connectionId;
68 
69 #ifndef DOXYGEN_SKIP_THIS
70 @property (nonatomic, readonly) NSDictionary* __nullable payload SKYWAY_API_DEPRECATED;
72 #endif // !DOXYGEN_SKIP_THIS
73 
77 @property (nonatomic, readonly) NSString* __nullable metadata;
78 
82 @property (nonatomic, readonly) BOOL isOpen;
83 
87 @property (nonatomic, readonly) NSString* __nullable peer;
88 
92 @property (nonatomic, readonly) NSString* __nullable type;
93 
97 @property (nonatomic, readonly) NSString* __nullable label;
98 
102 @property (nonatomic, readonly) BOOL reliable;
103 
107 @property (nonatomic, readonly) SKWSerializationEnum serialization;
108 
112 @property (nonatomic, weak, readonly) SKWPeer* __nullable provider;
113 
114 #ifndef DOXYGEN_SKIP_THIS
115 @property (nonatomic, readonly) id __nullable peerConnection SKYWAY_API_DEPRECATED;
117 #endif // !DOXYGEN_SKIP_THIS
118 
134 - (void)getStats:(SKWConnectionGetStatsCallback __nullable)callback;
135 
136 #pragma mark - Objective-C dependent
137 
138 #ifndef DOXYGEN_SKIP_THIS
139 - (void)getPeerConnectionState:(BOOL)bOutputDebug callback:(void(^ __nullable)(NSArray* __nullable))callback SKYWAY_API_DEPRECATED;
146 #endif // !DOXYGEN_SKIP_THIS
147 
148 @end
SKWConnection::serialization
SKWSerializationEnum serialization
送信されるデータ形式種別です。 コネクション作成時に定義されます。(データ接続でのみ有効です)
Definition: SKWConnection.h:107
SKW_SERIALIZATION_JSON
@ SKW_SERIALIZATION_JSON
JSON
Definition: SKWConnection.h:24
SKWConnection::connectionId
NSString *__nullable connectionId
コネクション ID
Definition: SKWConnection.h:67
SKWPeer
ピアクラス
Definition: SKWPeer.h:98
SKWConnection::type
NSString *__nullable type
コネクション種別
Definition: SKWConnection.h:92
SKWConnectionGetStatsCallback
void(^ SKWConnectionGetStatsCallback)(NSArray *__nullable stats)
統計情報取得コールバックシグネチャ
Definition: SKWConnection.h:52
SKW_SERIALIZATION_BINARY
@ SKW_SERIALIZATION_BINARY
Binary
Definition: SKWConnection.h:20
SKWSerializationEnum
SKWSerializationEnum
シリアライズ種別
Definition: SKWConnection.h:17
SKW_SERIALIZATION_BINARY_UTF8
@ SKW_SERIALIZATION_BINARY_UTF8
Binary (UTF-8)
Definition: SKWConnection.h:22
SKWConnection::reliable
BOOL reliable
送信されるデータ形式種別です。コネクション作成時に定義されます。(データ接続でのみ有効です)
Definition: SKWConnection.h:102
SKWConnection::peer
NSString *__nullable peer
リモートピア ID
Definition: SKWConnection.h:87
SKWConnection::label
NSString *__nullable label
コネクションラベル文字列
Definition: SKWConnection.h:97
SKWConnection::provider
SKWPeer *__nullable provider
この接続を作成したピアオブジェクトです
Definition: SKWConnection.h:112
SKWConnection
SKWDataConnection / SKWMediaConnection の基底クラスです。
Definition: SKWConnection.h:62
SKWConnection::isOpen
BOOL isOpen
コネクションの読み書き状態
Definition: SKWConnection.h:82
SKWConnection::metadata
NSString *__nullable metadata
コネクションに関連するメタデータ文字列
Definition: SKWConnection.h:77
SKW_SERIALIZATION_NONE
@ SKW_SERIALIZATION_NONE
NONE
Definition: SKWConnection.h:26