Session

Nested classes

Classes

SessionBuilder - Creates an instance of the Session

Fields

Access and typeField name

private final SessionListener

  • mSessionListener - Interface for the Session's callbacks

private SessionReconnectListener

  • mSessionReconnectListener - Interface for the SessionReconnect's callbacks

private SessionConnectionListener

  • mSessionConnectionListener - Interface for the SessionConnection's callbacks

private String

  • mUserName - The unique user's name for the session

private AudioManager

  • mAudioManager - Instance of AudioManager to work with audio routing

Public Constructor Summary

Type

Methods

Parameters

SessionBuilder

Session(final SessionListener listener)

  • listener - interface to session's callbacks;

SessionBuilder

setReconnectListener(final SessionReconnectListener listener)

  • listener - interface to session’s reconnect callbacks;

SessionBuilder

setConnectionListener(final SessionConnectinListener listener)

  • listener - interface to session's connection callbacks;

Session

build(final Context context)

  • context - an interface to global information about an application environment;

Public Method Summary

Type

Methods

Parameters

void

startCameraPreview() - creates local Media stream, which can be added on UI before Session ic connected.

void

connect(String token ) - This method will allow connecting to the Session

  • token - String value for authentication;

void

connect(String token, ParticipantType participantType) - This method will allow connecting to the Session with participant’s type

  • token - String value for authentication;

  • participantType - participant’s connection type

void

disconnect() Disconnects from the Session

void

switchCamera() - The method switches camera capturer for local stream from front camera to back

void

sendMessage(String message) - The method sends messages to the Session all participants in the room

  • message - string messages

Last updated