Contents

setActiveRemoteParticipant(_:channelUUID:completionHandler:)

Sets the active remote participant with the channel identifier.

Declaration

func setActiveRemoteParticipant(_ participant: PTParticipant?, channelUUID: UUID, completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)
func setActiveRemoteParticipant(_ participant: PTParticipant?, channelUUID: UUID) async throws

Parameters

  • participant:

    The remote participant to become active.

  • channelUUID:

    The channel identifier the participant becomes active in.

  • completionHandler:

    The completion handler that contains an optional error.

    error

    An error, if any, that indicates the reason why the system couldn’t set the active participant.

Mentioned in

Discussion

When you receive incoming audio from a remote participant, set the participant value, which updates the system user interface and blocks transmission by the local user. When the user stops speaking, set the active participant to nil.