Skip to content

BroadcastTextReceivedEvent

Lejla Solak edited this page Feb 10, 2025 · 2 revisions



getText()

Description

Getter for the text field.

Arguments

  • none

Returns

  • String - The value of the text field, which represents 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 - The value of the date field, representing the time the text was received.

Example

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

Tutorials

Migration guides

Reference documentation

Clone this wiki locally