Arguments for the data channel receive event. More...
Instance Methods | |
(FMLiveSwitchDataBuffer *) | - dataBytes |
Gets a received data buffer if it is available. More... | |
(NSString *) | - dataString |
Gets a received data string if it is available. More... | |
(instancetype) | - init |
(FMLiveSwitchConnectionInfo *) | - remoteConnectionInfo |
Gets the remote connection info. More... | |
(void) | - setDataBytes: |
Sets a received data buffer if it is available. More... | |
(void) | - setDataString: |
Sets a received data string if it is available. More... | |
Class Methods | |
(FMLiveSwitchDataChannelReceiveArgs *) | + dataChannelReceiveArgs |
Arguments for the data channel receive event.
- (FMLiveSwitchDataBuffer*) dataBytes |
Gets a received data buffer if it is available.
Set to null if a data string was not received. Bear in mind that when accessing the payload data from the FMLiveSwitchDataBuffer, only length (FMLiveSwitchDataBuffer) bytes starting with the index (FMLiveSwitchDataBuffer) byte should be read. See examples.
Example:
+ (FMLiveSwitchDataChannelReceiveArgs*) dataChannelReceiveArgs |
- (NSString*) dataString |
Gets a received data string if it is available.
Set to null if a data string was not received.
Example:
- (instancetype) init |
- (FMLiveSwitchConnectionInfo*) remoteConnectionInfo |
Gets the remote connection info.
- (void) setDataBytes: | (FMLiveSwitchDataBuffer *) | value |
Sets a received data buffer if it is available.
Set to null if a data string was not received. Bear in mind that when accessing the payload data from the FMLiveSwitchDataBuffer, only length (FMLiveSwitchDataBuffer) bytes starting with the index (FMLiveSwitchDataBuffer) byte should be read. See examples.
Example:
- (void) setDataString: | (NSString *) | value |
Sets a received data string if it is available.
Set to null if a data string was not received.
Example: