<!--
{
  "availability" : [
    "iOS: 3.0.0 - 7.0.0",
    "iPadOS: 3.0.0 - 7.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKPeerPickerControllerDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(pl)GKPeerPickerControllerDelegate"
  },
  "title" : "GKPeerPickerControllerDelegate"
}
-->

# GKPeerPickerControllerDelegate

The [`GKPeerPickerControllerDelegate`](/documentation/GameKit/GKPeerPickerControllerDelegate) protocol is implemented on an object to customize the behavior of a [`GKPeerPickerController`](/documentation/GameKit/GKPeerPickerController) object. The delegate is called by the peer picker to create a session object and to respond as the session is configured by the controller.

```
protocol GKPeerPickerControllerDelegate : NSObjectProtocol
```

## Topics

### Creating a Session for the Peer Picker

[`peerPickerController(_:didSelect:)`](/documentation/GameKit/GKPeerPickerControllerDelegate/peerPickerController(_:didSelect:))

Tells the delegate that the user selected a connection type.

[`peerPickerController(_:sessionFor:)`](/documentation/GameKit/GKPeerPickerControllerDelegate/peerPickerController(_:sessionFor:))

Asks the delegate to return a session for the specified connection type.

### Responding to Connection Messages

[`peerPickerController(_:didConnectPeer:to:)`](/documentation/GameKit/GKPeerPickerControllerDelegate/peerPickerController(_:didConnectPeer:to:))

Tells the delegate that the controller connected a peer to the session.

### Responding When the User Cancels the Connection Attempt

[`peerPickerControllerDidCancel(_:)`](/documentation/GameKit/GKPeerPickerControllerDelegate/peerPickerControllerDidCancel(_:))

Tells the delegate that the user canceled the connection attempt.



---

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)