Skip to content

TextDeliveredEvent

Lejla Solak edited this page Sep 22, 2023 · 1 revision



getId()

Description

Getter for the id field.

Arguments

  • none

Returns

  • String - Value of the id field representing a unique text identifier.

Example

DataChannelEventListener dataChannelEventListener = new DefaultDataChannelEventListener() {
    @Override
    public void onTextDelivered(TextDeliveredEvent textDeliveredEvent) {
        String id = textDeliveredEvent.getId();
    }
});



getDate()

Description

Getter for the date field.

Arguments

  • none

Returns

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

Example

DataChannelEventListener dataChannelEventListener = new DefaultDataChannelEventListener() {
    @Override
    public void onTextDelivered(TextDeliveredEvent textDeliveredEvent) {
        Date date = textDeliveredEvent.getDate();
    }
});



isDelivered()

Description

Getter for the delivered field.

Arguments

  • none

Returns

  • boolean - Value of the delivered field representing the delivery status of the text. If true, the text has been delivered successfully.

Example

DataChannelEventListener dataChannelEventListener = new DefaultDataChannelEventListener() {
    @Override
    public void onTextDelivered(TextDeliveredEvent textDeliveredEvent) {
        boolean isDelivered = textDeliveredEvent.isDelivered();
    }
});

Tutorials

Migration guides

Reference documentation

Clone this wiki locally