---
title: NotificationResponse
framework: accessorynotifications
role: symbol
role_heading: Structure
path: accessorynotifications/notificationresponse
---

# NotificationResponse

A structure that represents a person’s response to a notification.

## Declaration

```swift
struct NotificationResponse
```

## Overview

Overview Create an instance of this structure when a person responds to a notification on your accessory. Send it to the system using sendResponse(_:) after receiving the response data through messageHandler(_:).

## Topics

### Creating a notification response

- [init(sourceIdentifier:notificationIdentifier:actionIdentifier:userText:)](accessorynotifications/notificationresponse/init(sourceidentifier:notificationidentifier:actionidentifier:usertext:).md)

### Identifying the response action

- [actionIdentifier](accessorynotifications/notificationresponse/actionidentifier.md)

### Identifying the notification

- [notificationIdentifier](accessorynotifications/notificationresponse/notificationidentifier.md)
- [sourceIdentifier](accessorynotifications/notificationresponse/sourceidentifier.md)

### Accessing user-provided text

- [userText](accessorynotifications/notificationresponse/usertext.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
