-
Notifications
You must be signed in to change notification settings - Fork 2
BroadcastTextReceivedEvent
Kenan Genjac edited this page Oct 24, 2023
·
1 revision
Getter for the text
field.
none
-
String
- Value of thetext
field representing the received text.
DataChannelEventListener dataChannelEventListener = new DefaultDataChannelEventListener() {
@Override
public void onBroadcastTextReceived(BroadcastTextReceivedEvent broadcastTextReceivedEvent) {
String text = broadcastTextReceivedEvent.getText();
}
});
Getter for the date
field.
none
-
Date
- Value of thedate
field representing the time which the text has been received at.
DataChannelEventListener dataChannelEventListener = new DefaultDataChannelEventListener() {
@Override
public void onBroadcastTextReceived(BroadcastTextReceivedEvent broadcastTextReceivedEvent) {
Date date = broadcastTextReceivedEvent.getDate();
}
});