◆ connectionEventReceived:otherDeviceId:connectionType:()
- (void) connectionEventReceived: |
|
(CoConnectionEvent) |
connectionEvent |
otherDeviceId: |
|
(NSString *) |
otherDeviceId |
connectionType: |
|
(CoConnectionType) |
connectionType |
|
|
| |
|
required |
Delegate gets called when any type of event is received, other than receiving messages or data.
- Parameters
-
connectionEvent | Type of event received. |
otherDeviceId | The unique ID of the destination device. |
connectionType | The type of connection the event was received through. |
- Note
- This delegate will be called each time with successful connectionEvent when one of the connection types gets established. For example, if the first data connection to get established is via server, then this callback will be called with CoConnectionTypeServer as connectionType. If a little bit later a peer-to-peer data connection is successfully established, then this callback will be called again with the CoConnectionTypeP2P connectionType.
◆ dataReceived:dataType:otherDeviceId:connectionType:()
- (void) dataReceived: |
|
(NSData *) |
data |
dataType: |
|
(CoDataType) |
dataType |
otherDeviceId: |
|
(NSString *) |
otherDeviceId |
connectionType: |
|
(CoConnectionType) |
connectionType |
|
|
| |
|
required |
Delegate gets called when data has been received.
- Parameters
-
data | Data that was received. |
dataType | Type of data that was received. |
otherDeviceId | The unique ID of the destination device. |
connectionType | The type of connection the data was received through. |
◆ msgReceived:otherDeviceId:()
- (void) msgReceived: |
|
(NSString *) |
msg |
otherDeviceId: |
|
(NSString *) |
otherDeviceId |
|
|
| |
|
required |
Delegate gets called when a message has been received.
- Parameters
-
msg | Message that was received. |
otherDeviceId | The unique ID of the destination device. |
The documentation for this protocol was generated from the following file: