<!--
{
  "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/GKPeerPickerController/connectionTypesMask",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKPeerPickerController(py)connectionTypesMask"
  },
  "title" : "connectionTypesMask"
}
-->

# connectionTypesMask

A mask that determines the types of connections a dialog presents to the user.

```
var connectionTypesMask: GKPeerPickerConnectionType { get set }
```

## Discussion

Your application configures the connection types it allows before showing the peer picker. If your application allows more than one connection type, the peer picker offers the user a choice of which type of connection to use. The default value for the mask is [`GKPeerPickerConnectionType.nearby`](/documentation/GameKit/GKPeerPickerConnectionType/nearby).

> Important:
> In iOS 3.0, ``doc://com.apple.gamekit/documentation/GameKit/GKPeerPickerConnectionType/nearby`` is required to be one of the allowed connection types. An exception is thrown if your application does not include it.

---

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)