---
title: "init(targetMessageID:operation:isEndToEndEncrypted:)"
framework: TelephonyMessagingKit
role: symbol
role_heading: Initializer
platforms: [iOS 27.0+]
path: "telephonymessagingkit/rcsmessage/customreaction/init(targetmessageid:operation:isendtoendencrypted:)"
---

# init(targetMessageID:operation:isEndToEndEncrypted:)

Creates a custom reaction instance with the message identifier and content.

## Declaration

```swift
init(targetMessageID: RCSMessageID, operation: RCSMessage.CustomReaction.Operation, isEndToEndEncrypted: Bool)
```

## Parameters

- `targetMessageID`: The target message ID for the custom reaction.
- `operation`: The operation for the custom reaction.
- `isEndToEndEncrypted`: A Boolean value indicating whether this message is end-to-end encrypted.
