Skip to content

BroadcastTextReceivedEvent

Kenan Genjac edited this page Oct 24, 2023 · 1 revision



getText()

Description

Getter for the text field.

Arguments

  • none

Returns

  • String - Value of the text field representing the received text.

Example

DataChannelEventListener dataChannelEventListener = new DefaultDataChannelEventListener() {
    @Override
    public void onBroadcastTextReceived(BroadcastTextReceivedEvent broadcastTextReceivedEvent) {   
        String text = broadcastTextReceivedEvent.getText();
    }
});



getDate()

Description

Getter for the date field.

Arguments

  • none

Returns

  • Date - Value of the date field representing the time which the text has been received at.

Example

DataChannelEventListener dataChannelEventListener = new DefaultDataChannelEventListener() {
    @Override
    public void onBroadcastTextReceived(BroadcastTextReceivedEvent broadcastTextReceivedEvent) {
        Date date = broadcastTextReceivedEvent.getDate();
    }
});

Tutorials

Migration guides

Reference documentation

Clone this wiki locally