-
- All Implemented Interfaces:
public final class Streem.Configuration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
Streem.Configuration.Companion
public final class
Streem.Configuration.Builder
-
Field Summary
Fields Modifier and Type Field Description private Function1<Throwable, Unit>
globalErrorListener
private final Application
application
private final CharSequence
appId
private final Streem.Environment
environment
private final TokenRefresher
tokenRefresher
-
Constructor Summary
Constructors Constructor Description Streem.Configuration(Application application, CharSequence appId, Streem.Environment environment, Function1<Throwable, Unit> errorListener)
Streem.Configuration(Application application, CharSequence appId, Streem.Environment environment, TokenRefresher tokenRefresher)
-
Method Summary
Modifier and Type Method Description final Function1<Throwable, Unit>
getGlobalErrorListener()
final Unit
setGlobalErrorListener(@Deprecated(message = "globalErrorListener will be removed in a future release") Function1<Throwable, Unit> globalErrorListener)
final Application
getApplication()
final CharSequence
getAppId()
final Streem.Environment
getEnvironment()
final TokenRefresher
getTokenRefresher()
-
-
Constructor Detail
-
Streem.Configuration
Streem.Configuration(Application application, CharSequence appId, Streem.Environment environment, Function1<Throwable, Unit> errorListener)
-
Streem.Configuration
Streem.Configuration(Application application, CharSequence appId, Streem.Environment environment, TokenRefresher tokenRefresher)
- Parameters:
application
- the calling applicationappId
- application's ID provided by Streem.
-
-
Method Detail
-
getGlobalErrorListener
final Function1<Throwable, Unit> getGlobalErrorListener()
-
setGlobalErrorListener
final Unit setGlobalErrorListener(@Deprecated(message = "globalErrorListener will be removed in a future release") Function1<Throwable, Unit> globalErrorListener)
-
getApplication
final Application getApplication()
-
getAppId
final CharSequence getAppId()
-
getEnvironment
final Streem.Environment getEnvironment()
-
getTokenRefresher
final TokenRefresher getTokenRefresher()
-
-
-
-