A structure that represents file transfer content in an RCS message.
When sending a file to a recipient, you use the ``RCSService`` to call ``RCSService/upload(_:)`` and use the metadata returned by that method to create a message of this type.
When receiving a file, you handle messages of this type in the ``RCSService/incomingMessageNotifications`` asynchronous sequence, and use the received message to create a ``RCSService/FileDownloadRequest`` for use with ``RCSService/download(_:)``.
Members (7)
get · iOS 26.5+
isEndToEndEncrypted
TypeScript
get isEndToEndEncrypted(): boolean
Swift declaration
var isEndToEndEncrypted: Bool
A Boolean value indicating whether this message is end-to-end encrypted.
For outgoing messages, this indicates whether to end-to-end encrypt the message before sending out.
If the service does not support end-to-end encryption, the operation will throw ``RCSService/Error/endToEndEncryptionNotSupported``.
For incoming messages, this indicates whether the message was end-to-end encrypted.
set · iOS 26.5+
isEndToEndEncrypted
TypeScript
set isEndToEndEncrypted(value: boolean)
Swift declaration
var isEndToEndEncrypted: Bool
A Boolean value indicating whether this message is end-to-end encrypted.
For outgoing messages, this indicates whether to end-to-end encrypt the message before sending out.
If the service does not support end-to-end encryption, the operation will throw ``RCSService/Error/endToEndEncryptionNotSupported``.
For incoming messages, this indicates whether the message was end-to-end encrypted.
Creates a file transfer content instance with the given metadata.
- Parameters:
- fileMetadata: Metadata for the transferred file.
- thumbnailMetadata: Metadata for the transferred thumbnail.
get · iOS 26.0+
fileMetadata
TypeScript
get fileMetadata(): RCSFileTransferMetadata
Swift declaration
var fileMetadata: RCSFileTransferMetadata
Metadata for the transferred file.
set · iOS 26.0+
fileMetadata
TypeScript
set fileMetadata(value: RCSFileTransferMetadata)
Swift declaration
var fileMetadata: RCSFileTransferMetadata
Metadata for the transferred file.
get · iOS 26.0+
thumbnailMetadata
TypeScript
get thumbnailMetadata(): (RCSFileTransferMetadata) | null
Swift declaration
var thumbnailMetadata: RCSFileTransferMetadata?
Metadata for the transferred thumbnail.
set · iOS 26.0+
thumbnailMetadata
TypeScript
set thumbnailMetadata(value: (RCSFileTransferMetadata) | null)