Contents

receiveMessage(using:messageID:)

Retrieves an MMS message that matches the given identifiers.

Declaration

final func receiveMessage(using cellularServiceID: CellularServiceID, messageID: MMSMessageID) async throws -> MMSMessage

Parameters

  • cellularServiceID:

    The service identifier to use for this request.

  • messageID:

    The message identifier for the target message.

Return Value

The message matching the specified identifiers.

Discussion

You get the cellularServiceID and messageID from an MMSService.IncomingMessageNotification that you receive from the incomingMessageNotifications asynchronous sequence.