Skip to content

TextDeliveredEvent

Ajša Terko edited this page Sep 22, 2023 · 1 revision



id

Description

Read-only property that represents the id of the text.

Returns

  • String - Represents the id of the text for which the event has been received.

Example

func onTextDelivered(_ textDeliveredEvent: TextDeliveredEvent) {
    os_log("The id of the text is %@.", textDeliveredEvent.id)
}



delivered

Description

Read-only property that represents the delivered status of the text.

Returns

  • Bool - Represents the delivery status of the text for which the event has been received. If true, the text has been delivered successfully.

Example

func onTextDelivered(_ textDeliveredEvent: TextDeliveredEvent) {
  if (textDeliveredEvent.delivered) {
    os_log("The text has been delivered successfully.")
  } 
}



date

Description

Read-only property that represents the date of the (un)successful delivery of the text.

Returns

  • Date - Represents the date and time of the (un)successful delivery of the text.

Example

func onTextDelivered(_ textDeliveredEvent: TextDeliveredEvent) {
    os_log("The delivery time is %@.", textDeliveredEvent.date)
}

Tutorials

Migration guides

Reference documentation

Clone this wiki locally