setParticipantLimit(_:forWaitingOutSuspensionsWithReason:)
Sets a limit on the number of partipants that a group may contain before the coordinator stops waiting on suspensions that occur for a particular reason.
Declaration
func setParticipantLimit(_ participantLimit: Int, forWaitingOutSuspensionsWithReason reason: AVCoordinatedPlaybackSuspension.Reason)Parameters
- participantLimit:
The number of participants.
- reason:
The suspension reason to set a limit for.
Discussion
This method provides additional configuration of the values your app sets for the suspensionReasonsThatTriggerWaiting property. When a coordinator decides whether one participant’s suspensions cause others to wait, it also considers any participant limits that you set on the group.