-
Notifications
You must be signed in to change notification settings - Fork 2
TextDeliveredEvent
Lejla Solak edited this page Sep 22, 2023
·
1 revision
Getter for the id
field.
none
-
String
- Value of theid
field representing a unique text identifier.
DataChannelEventListener dataChannelEventListener = new DefaultDataChannelEventListener() {
@Override
public void onTextDelivered(TextDeliveredEvent textDeliveredEvent) {
String id = textDeliveredEvent.getId();
}
});
Getter for the date
field.
none
-
Date
- Value of thedate
field representing the time which the text has been delivered at.
DataChannelEventListener dataChannelEventListener = new DefaultDataChannelEventListener() {
@Override
public void onTextDelivered(TextDeliveredEvent textDeliveredEvent) {
Date date = textDeliveredEvent.getDate();
}
});
Getter for the delivered
field.
none
-
boolean
- Value of thedelivered
field representing the delivery status of the text. Iftrue
, the text has been delivered successfully.
DataChannelEventListener dataChannelEventListener = new DefaultDataChannelEventListener() {
@Override
public void onTextDelivered(TextDeliveredEvent textDeliveredEvent) {
boolean isDelivered = textDeliveredEvent.isDelivered();
}
});