<!--
{
  "documentType" : "article",
  "framework" : "MultipeerConnectivity",
  "identifier" : "/documentation/MultipeerConnectivity/multipeerconnectivity_constants",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "MultipeerConnectivity Constants"
}
-->

# MultipeerConnectivity Constants

## Topics

### Constants

[`let MCErrorDomain: String`](/documentation/MultipeerConnectivity/MCErrorDomain)

The `NSError` domain constant. If the `domain` value for an `NSError` object is equal to `MCErrorDomain`, then the error was produced by the Multipeer Connectivity framework itself, as opposed to a lower-level framework on which it depends.

[`let kMCSessionMaximumNumberOfPeers: Int`](/documentation/MultipeerConnectivity/kMCSessionMaximumNumberOfPeers)

The maximum number of peers that a session can support, including the local peer.

[`let kMCSessionMinimumNumberOfPeers: Int`](/documentation/MultipeerConnectivity/kMCSessionMinimumNumberOfPeers)

The minimum number of peers that a session can support, including the local peer.



---

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)