<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "XPC",
  "identifier" : "/documentation/XPC/XPCListener/IncomingSessionRequest/Decision",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "XPC"
    ],
    "preciseIdentifier" : "s:3XPC11XPCListenerC22IncomingSessionRequestC8DecisionV"
  },
  "title" : "XPCListener.IncomingSessionRequest.Decision"
}
-->

# XPCListener.IncomingSessionRequest.Decision

An opaque type that indicates whether a listener accepts or rejects an incoming session request.

```
struct Decision
```

## Overview

When you create an [`XPCListener`](/documentation/XPC/XPCListener), you specify a closure that receives an [`XPCListener.IncomingSessionRequest`](/documentation/XPC/XPCListener/IncomingSessionRequest). In that closure, you receive a `Decision` from the call to the request’s accept or reject methods. You don’t have to do anything with the decision other than return it from the closure.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)