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
67 #ifndef DOXYGEN_SKIP_THIS
68 SKW_PEER_EVENT_REACHABILITY,
70 #endif // !DOXYGEN_SKIP_THIS
71 SKW_PEER_EVENT_AUTH_EXPIRES_IN,
105 @property (nonatomic, readonly) NSString* __nullable
identity;
112 @property (nonatomic, readonly) NSDictionary* __nullable
connections;
143 #ifndef DOXYGEN_SKIP_THIS
144 - (nonnull instancetype)init NS_UNAVAILABLE;
145 #endif // !DOXYGEN_SKIP_THIS
171 - (instancetype __nullable)initWithOptions:(
SKWPeerOption* __nullable)options;
204 - (instancetype __nullable)initWithId:(NSString* __nullable)peerId options:(
SKWPeerOption* __nullable)options NS_DESIGNATED_INITIALIZER;
451 - (void)listAllPeers:(
void (^ __nullable)(NSArray * __nullable))callback;
453 #ifndef DOXYGEN_SKIP_THIS
454 - (
SKWConnection* __nullable)getConnectionWithId:(NSString* __nonnull)peerId connectionId:(NSString* __nonnull)connectionId;
455 #endif // !DOXYGEN_SKIP_THIS
504 - (
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 server and terminate all existing connections.
A peer class.
Definition: SKWPeer.h:98
Media stream.
Definition: SKWMediaStream.h:18
Room base class.
Definition: SKWRoom.h:64
void reconnect()
Attempt to reconnect to the server with the peer's old ID.
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:112
Alternative class as MediaConnection.
Definition: SKWMediaConnection.h:52
NSString *__nullable identity
The brokering ID of this peer.
Definition: SKWPeer.h:105
@ 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:66
void(^ SKWPeerEventCallback)(NSObject *__nullable arg)
Peer Event Callback signature.
Definition: SKWPeer.h:80
@ SKW_PEER_EVENT_CLOSE
Emitted when the peer is destroyed and can no longer accept or create any new connections.
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:62
BOOL disconnect()
Close the connection to the server, leaving all existing data and media connections intact.
@ 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:134
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:123
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