-
- All Implemented Interfaces:
public class Streem.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final String
EXTRA_EXIT_CODE
private final String
EXTRA_JOINED_CALL_TIME
private final String
EXTRA_ERROR
private final String
EXIT_CODE_HELP
private final String
EXIT_CODE_EXIT
private final String
EXIT_CODE_CALL_REJECTED
private final String
EXIT_CODE_NOT_ANSWERED
private final String
EXIT_CODE_CANCELED
private final String
EXIT_CODE_ERROR
public final static Streem.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final Streem
get()
Returns the shared Streem instance. final Streem
initialize(Streem.Configuration configuration)
Initializes the Streem SDK. final Unit
shutdown()
Shuts down the Streem SDK. final String
getEXTRA_EXIT_CODE()
Exit code (as a string) from the Streem experience. final String
getEXTRA_JOINED_CALL_TIME()
The time that the user taps the Join Now button in the Lobby final String
getEXTRA_ERROR()
A Serialized Throwable that may be returned if there is an error after starting the Streem experience. final String
getEXIT_CODE_HELP()
The user exited the Streem experience using the "Help" button. final String
getEXIT_CODE_EXIT()
The user exited the Streem experience using the "Exit" button. final String
getEXIT_CODE_CALL_REJECTED()
The call did not connect because it was rejected by the remote user. final String
getEXIT_CODE_NOT_ANSWERED()
The call was not answered within the timeout period. final String
getEXIT_CODE_CANCELED()
The call was ended by the local user before the remote user answered. final String
getEXIT_CODE_ERROR()
There was an unexpected error. -
-
Method Detail
-
get
final Streem get()
Returns the shared Streem instance. Streem.initialize MUST have been called before calling this method.
-
initialize
final Streem initialize(Streem.Configuration configuration)
Initializes the Streem SDK. Should be called in the Application's
onCreate
method.
-
getEXTRA_EXIT_CODE
final String getEXTRA_EXIT_CODE()
Exit code (as a string) from the Streem experience.
-
getEXTRA_JOINED_CALL_TIME
final String getEXTRA_JOINED_CALL_TIME()
The time that the user taps the Join Now button in the Lobby
-
getEXTRA_ERROR
final String getEXTRA_ERROR()
A Serialized Throwable that may be returned if there is an error after starting the Streem experience.
-
getEXIT_CODE_HELP
final String getEXIT_CODE_HELP()
The user exited the Streem experience using the "Help" button.
-
getEXIT_CODE_EXIT
final String getEXIT_CODE_EXIT()
The user exited the Streem experience using the "Exit" button.
-
getEXIT_CODE_CALL_REJECTED
final String getEXIT_CODE_CALL_REJECTED()
The call did not connect because it was rejected by the remote user.
-
getEXIT_CODE_NOT_ANSWERED
final String getEXIT_CODE_NOT_ANSWERED()
The call was not answered within the timeout period.
-
getEXIT_CODE_CANCELED
final String getEXIT_CODE_CANCELED()
The call was ended by the local user before the remote user answered.
-
getEXIT_CODE_ERROR
final String getEXIT_CODE_ERROR()
There was an unexpected error.
-
-
-
-