Instance Property

maximumNumberOfPeers

The maximum number of peers allowed in a session, including the local peer.

Declaration

iOS, Mac Catalyst, tvOS
@property(assign, nonatomic) NSUInteger maximumNumberOfPeers;
macOS
@property(assign, atomic) NSUInteger maximumNumberOfPeers;

Discussion

The largest allowable value (and the default) is 8.

See Also

Getting and Setting the Maximum and Minimum Number of Peers

minimumNumberOfPeers

The minimum number of peers that need to be in a session, including the local peer.