Sender methods

Using the below declared configuration, the TrillSDK would send “abcdef” for 10 times. The Sender will automatically stop when played for 10 times.

SendingConfiguration sendingConfiguration = new SendingConfiguration();
sendingConfiguration.payload = "abcdef";
sendingConfiguration.repeat_count = 10;

Use the start_sending method to start sending data from the sender, with the configuration set previously, as shown above.


To instruct the SDK to stop sending data , use stop_sending method:


Last updated