Go to the documentation of this file.
11 #ifndef DOXYGEN_SKIP_THIS
12 extern NSString* __nonnull
const kSKWTrue;
15 extern NSString* __nonnull
const kSKWFalse;
20 extern NSString* __nonnull
const kSKWConnectionTypeData;
23 extern NSString* __nonnull
const kSKWConnectionTypeMedia;
28 extern NSString* __nonnull
const kSKWPeerSerializationBinary;
31 extern NSString* __nonnull
const kSKWPeerSerializationBinaryUtf8;
33 extern NSString* __nonnull
const kSKWPeerSerializationJson;
35 extern NSString* __nonnull
const kSKWPeerSerializationNone;
36 #endif // !DOXYGEN_SKIP_THIS
75 #ifndef DOXYGEN_SKIP_THIS
76 SKW_PEER_EVENT_REACHABILITY,
78 #endif // !DOXYGEN_SKIP_THIS
79 SKW_PEER_EVENT_AUTH_EXPIRES_IN,
113 @property (nonatomic, readonly) NSString* __nullable
identity;
120 @property (nonatomic, readonly) NSDictionary* __nullable
connections;
151 #ifndef DOXYGEN_SKIP_THIS
152 - (nonnull instancetype)init NS_UNAVAILABLE;
153 #endif // !DOXYGEN_SKIP_THIS
181 - (instancetype __nullable)initWithOptions:(
SKWPeerOption* __nullable)options;
216 - (instancetype __nullable)initWithId:(NSString* __nullable)peerId options:(
SKWPeerOption* __nullable)options NS_DESIGNATED_INITIALIZER;
414 - (void)
reconnect __attribute__((deprecated("recreate a Peer instance instead")));
454 - (void)listAllPeers:(
void (^ __nullable)(NSArray * __nullable))callback;
485 - (void)fetchPeerExistsWithPeerId:(NSString* __nonnull)peerId success:(
void (^ __nonnull)(BOOL))successCallback error:(
void (^ __nullable)(NSString* __nonnull))errorCallback;
487 #ifndef DOXYGEN_SKIP_THIS
488 - (
SKWConnection* __nullable)getConnectionWithId:(NSString* __nonnull)peerId connectionId:(NSString* __nonnull)connectionId;
489 #endif // !DOXYGEN_SKIP_THIS
538 - (
SKWRoom* __nullable)joinRoomWithName:(NSString* __nonnull)roomName options:(
SKWRoomOption* __nonnull)option;
Alternative class as DataConnection.
Definition: SKWDataConnection.h:41
BOOL destroy()
Close the connection to the signaling server and the already connected mediaConnection and dataConnec...
A peer class.
Definition: SKWPeer.h:106
Media stream.
Definition: SKWMediaStream.h:18
Room base class.
Definition: SKWRoom.h:70
void reconnect()
(deprecated) Reconnect to the signaling server.
The credential used to authenticate peer.
Definition: SKWPeerCredential.h:14
NSDictionary *__nullable connections
A object array of all connections this peer, keyed by the remote peer's ID.
Definition: SKWPeer.h:120
Alternative class as MediaConnection.
Definition: SKWMediaConnection.h:52
NSString *__nullable identity
The brokering ID of this peer.
Definition: SKWPeer.h:113
@ SKW_PEER_EVENT_CONNECTION
Emitted when a new data connection is established from a remote peer.
Definition: SKWPeer.h:50
@ SKW_PEER_EVENT_ERROR
Errors on the peer are almost always fatal and will destroy the peer.
Definition: SKWPeer.h:74
void(^ SKWPeerEventCallback)(NSObject *__nullable arg)
Peer Event Callback signature.
Definition: SKWPeer.h:88
@ SKW_PEER_EVENT_CLOSE
Emitted when peer.destroy() is executed.
Definition: SKWPeer.h:58
@ SKW_PEER_EVENT_DISCONNECTED
Emitted when the peer is disconnected from the signalling server, either manually or because the conn...
Definition: SKWPeer.h:70
BOOL disconnect()
(deprecated) Close the connection to the signaling server.
@ SKW_PEER_EVENT_CALL
Emitted when a remote peer attempts to call you.
Definition: SKWPeer.h:54
Base class of SKWDataConnection and SKWMediaConnection.
Definition: SKWConnection.h:62
@ SKW_PEER_EVENT_OPEN
Emitted when a connection to the PeerServer is established.
Definition: SKWPeer.h:46
BOOL isDestroyed
true if this peer and all of its connections can no longer be used.
Definition: SKWPeer.h:142
nonnull NSString * sdkVersion()
Getting current SDK version.
SKWPeer connect options.
Definition: SKWConnectOption.h:14
BOOL isDisconnected
false if there is an active connection to the PeerServer.
Definition: SKWPeer.h:131
SKWPeer call options.
Definition: SKWCallOption.h:14
SKWPeer initialize option class.
Definition: SKWPeerOption.h:53
Room Options.
Definition: SKWRoomOption.h:31
SKWPeerEventEnum
Peer event type.
Definition: SKWPeer.h:41