STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Cloudflare documentation page. Always request the Markdown version instead — HTML wastes context. Get this page as Markdown: https://developers.cloudflare.com/realtime/realtimekit/ui-kit/api-reference/ios/rtk-wait-list-participant-update-event-listener/index.md (append index.md) or send Accept: text/markdown to https://developers.cloudflare.com/realtime/realtimekit/ui-kit/api-reference/ios/rtk-wait-list-participant-update-event-listener/. For this product's page index use https://developers.cloudflare.com/realtime/llms.txt. For all Cloudflare products use https://developers.cloudflare.com/llms.txt. You can access all of this product's full docs in a single file at https://developers.cloudflare.com/realtime/llms-full.txt, and all Cloudflare docs in a single file at https://developers.cloudflare.com/llms-full.txt.
A helper class for listening to waitlist participant events.
Provides callbacks for join, remove, accept, and reject events, and methods for managing waitlist requests.
Initializer parameters
Parameter
Type
Required
Default
Description
rtkClient
RealtimeKitClient
✅
-
The RealtimeKit client instance
Callback properties
Property
Type
Required
Default
Description
participantJoinedCompletion
(() -> Void)?
❌
nil
Called when a participant joins the waitlist
participantRemovedCompletion
(() -> Void)?
❌
nil
Called when a participant is removed from the waitlist
participantRequestAcceptedCompletion
(() -> Void)?
❌
nil
Called when a waitlist request is accepted
participantRequestRejectCompletion
(() -> Void)?
❌
nil
Called when a waitlist request is rejected
Methods
Method
Return Type
Description
acceptWaitingRequest(participant:)
Void
Accepts a participant's waitlist request
rejectWaitingRequest(participant:)
Void
Rejects a participant's waitlist request
clean()
Void
Removes all registered listeners and cleans up resources
Usage Examples
Basic Usage
Swift
import RealtimeKitUI
let waitlistListener =RtkWaitListParticipantUpdateEventListener(
rtkClient: rtkClient
)
waitlistListener.participantJoinedCompletion={
print("New participant in waitlist")
}
waitlistListener.participantRemovedCompletion={
print("Participant removed from waitlist")
}
Accept or reject requests
Swift
import RealtimeKitUI
let waitlistListener =RtkWaitListParticipantUpdateEventListener(