-
Notifications
You must be signed in to change notification settings - Fork 2
RoomRequest
Lejla Solak edited this page Sep 22, 2023
·
3 revisions
RoomRequest(String token, Context context, String roomName, RoomCallEventListener roomCallEventListener
String getToken()
Context getContext()
String getRoomName()
RoomCallEventListener getRoomCallEventListener()
Creates a new instance of RoomRequest
.
-
token
:String
- Authentication token generated by client's app via Infobip's HTTP /webrtc/1/token endpoint. -
context
:Context
- Instance of theandroid.content.Context
class. -
roomName
:String
- Name of the room which user wants to join. -
roomCallEventListener
:RoomCallEventListener
- Event listener used for receiving room events.
-
RoomRequest
- Instance of theRoomRequest
.
RoomRequest roomRequest = new RoomRequest(obtainToken(), getApplicationContext(), "Alice", this);
Getter for the token
field.
none
-
String
- Value of thetoken
field.
RoomRequest roomRequest = new RoomRequest(obtainToken(), getApplicationContext(), "Alice", this);
String token = roomRequest.getToken();
Getter for the context
field.
none
-
Context
- Value of thecontext
field.
RoomRequest roomRequest = new RoomRequest(obtainToken(), getApplicationContext(), "Alice", this);
Context context = roomRequest.getContext();
Getter for the roomName
field.
none
-
String
- Value of theroomName
field.
RoomRequest roomRequest = new RoomRequest(obtainToken(), getApplicationContext(), "Alice", this);
String roomName = roomRequest.getRoomName();
Getter for the roomCallEventListener
field.
none
-
RoomCallEventListener
- Value of theroomCallEventListener
field.
RoomRequest roomRequest = new RoomRequest(obtainToken(), getApplicationContext(), "Alice", this);
RoomCallEventListener roomCallEventListener = roomRequest.getRoomCallEventListener();