Skip to content

RoomRequest

Lejla Solak edited this page Sep 22, 2023 · 3 revisions



RoomRequest(token, context, roomName, roomCallEventListener)

Description

Creates a new instance of RoomRequest.

Arguments

  • token: String - Authentication token generated by client's app via Infobip's HTTP /webrtc/1/token endpoint.
  • context: Context - Instance of the android.content.Context class.
  • roomName: String - Name of the room which user wants to join.
  • roomCallEventListener: RoomCallEventListener - Event listener used for receiving room events.

Returns

Example

RoomRequest roomRequest = new RoomRequest(obtainToken(), getApplicationContext(), "Alice", this);



getToken()

Description

Getter for the token field.

Arguments

  • none

Returns

  • String - Value of the token field.

Example

RoomRequest roomRequest = new RoomRequest(obtainToken(), getApplicationContext(), "Alice", this);
String token = roomRequest.getToken();



getContext()

Description

Getter for the context field.

Arguments

  • none

Returns

  • Context - Value of the context field.

Example

RoomRequest roomRequest = new RoomRequest(obtainToken(), getApplicationContext(), "Alice", this);
Context context = roomRequest.getContext();



getRoomName()

Description

Getter for the roomName field.

Arguments

  • none

Returns

  • String - Value of the roomName field.

Example

RoomRequest roomRequest = new RoomRequest(obtainToken(), getApplicationContext(), "Alice", this);
String roomName = roomRequest.getRoomName();



getRoomCallEventListener()

Description

Getter for the roomCallEventListener field.

Arguments

  • none

Returns

Example

RoomRequest roomRequest = new RoomRequest(obtainToken(), getApplicationContext(), "Alice", this);
RoomCallEventListener roomCallEventListener = roomRequest.getRoomCallEventListener();

Tutorials

Migration guides

Reference documentation

Clone this wiki locally