-
Notifications
You must be signed in to change notification settings - Fork 2
BroadcastTextReceivedEvent
Lejla Solak edited this page Feb 10, 2025
·
2 revisions
Getter for the text
field.
none
-
String
- The value of thetext
field, which represents the received text.
DataChannelEventListener dataChannelEventListener = new DefaultDataChannelEventListener() {
@Override
public void onBroadcastTextReceived(BroadcastTextReceivedEvent broadcastTextReceivedEvent) {
String text = broadcastTextReceivedEvent.getText();
}
};
Getter for the date
field.
none
-
Date
- The value of thedate
field, representing the time the text was received.
DataChannelEventListener dataChannelEventListener = new DefaultDataChannelEventListener() {
@Override
public void onBroadcastTextReceived(BroadcastTextReceivedEvent broadcastTextReceivedEvent) {
Date date = broadcastTextReceivedEvent.getDate();
}
};