public static class Session.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder(android.content.Context context,
java.lang.String apiKey,
java.lang.String sessionId)
Use this builder to create a Session instance.
|
Modifier and Type | Method and Description |
---|---|
Session |
build()
Returns a new
Session instance based on the Session.Builder
settings. |
Session.Builder |
connectionEventsSuppressed(java.lang.Boolean enabled)
Prevent connection events (such as
Session.ConnectionListener.onConnectionCreated(Session session,
Connection connection) ) from being dispatched. |
Session.Builder |
sessionOptions(Session.SessionOptions sessionOptions)
Sets advanced options for the session.
|
public Builder(android.content.Context context, java.lang.String apiKey, java.lang.String sessionId)
context
- The Android application context associated with this process.apiKey
- Your OpenTok API key. See the your
TokBox account page.sessionId
- The OpenTok session ID this instance should connect to. For
test purposes, you can generate test session by logging into your
TokBox account. Use the
OpenTok
server-side SDKs to generate session IDs in your shipping app.Session.setSessionListener(com.opentok.android.Session.SessionListener)
public Session.Builder connectionEventsSuppressed(java.lang.Boolean enabled)
Session.ConnectionListener.onConnectionCreated(Session session,
Connection connection)
) from being dispatched. This is experimental feature
that is subject to change, and it is available to partners enrolled in an upcoming
beta program.
The default value is false
.
public Session.Builder sessionOptions(Session.SessionOptions sessionOptions)
Session.SessionOptions