Sending short data
LINE Planet provides APIs that let you send a limited size of data ("short data") during communications. This page describes how to send short data during a call.
Supported call type | Supported SDK version |
---|---|
1-to-1 call, group call | All versions |
Common features
The following applies to sending short data regardless of call types.
Size limitation
The methods to send short data accept the type of the data along with the data itself. The maximum sizes for the data type and the data are as follows:
- Data type: 100 bytes (including the null termination character)
- Data: 800 bytes
Retrieving the result of sending short data
Sometimes data transfer might fail even after several retries by LINE Planet. You can find out the result of data transfer asynchronously with the result handler callback.
1-to-1 call
On 1-to-1 calls, use sendShortData(type:data:completion:)
of PlanetKitCall
to send short data to the call peer.
The peer can receive the short data through didReceiveShortData
of PlanetKitCallDelegate
.
Group call
On group calls, you can send short data to a specific peer or all peers.
- To send short data to a specific peer, use
sendShortData(peerId:type:data:completion:)
ofPlanetKitConference
. - To send short data to all peers, use
sendShortData(type:data:completion:)
ofPlanetKitConference
.
The peers can receive the short data through didReceiveShortData
of PlanetKitConferenceDelegate
.
Related API
APIs related to sending short data are as follows.