-
Notifications
You must be signed in to change notification settings - Fork 2
RoomRequest
Adnan Mujagić edited this page Jun 11, 2024
·
4 revisions
init(_ token: String, roomName: String, roomCallEventListener: RoomCallEventListener)token: StringroomName: StringroomCallEventListener: RoomCallEventListener
Creates an instance of RoomRequest required for joining a room via joinRoom method.
-
token:String- Authentication token generated by client's app via Infobip's HTTP /webrtc/1/token endpoint. -
roomName:String- Name of the room which user wants to join. -
roomCallEventListener:RoomCallEventListener- Event listener used for receiving room events.
-
RoomRequest- Instance of theRoomRequest.
let token = obtainToken()
let roomRequest = RoomRequest(token, roomName: "room-demo", roomCallEventListener: self)Getter for the token field.
-
token:String- Represents authentication token generated by client's app via Infobip's HTTP /webrtc/1/token endpoint.
Getter for the roomName field.
-
String- Represents a name of the room which user wants to join.
Getter for the roomCallEventListener field.
-
RoomCallEventListener- Value of theroomCallEventListenerfield representing the event handler for room call events.