-
- All Implemented Interfaces:
public final class Streem.Configuration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classStreem.Configuration.Companionpublic final classStreem.Configuration.Builder
-
Field Summary
Fields Modifier and Type Field Description private Function1<Throwable, Unit>globalErrorListenerprivate final Applicationapplicationprivate final CharSequenceappIdprivate final Streem.Environmentenvironmentprivate final TokenRefreshertokenRefresher
-
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 UnitsetGlobalErrorListener(@Deprecated(message = "globalErrorListener will be removed in a future release") Function1<Throwable, Unit> globalErrorListener)final ApplicationgetApplication()final CharSequencegetAppId()final Streem.EnvironmentgetEnvironment()final TokenRefreshergetTokenRefresher()-
-
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()
-
-
-
-