-
public class MenigaSettingsCopyright 2017 Meniga Iceland Inc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMenigaSettings.Builder
-
Field Summary
Fields Modifier and Type Field Description private final HttpUrlendpointprivate final Authenticatorauthenticatorprivate final longtimeoutInSecondsprivate PersistenceProviderpersistenceProviderprivate final Map<Service, SpecialServiceEndpointDefinition>specialServiceEndpointsprivate final List<Interceptor>networkInterceptorsprivate final CertificatePinnercertificatePinnerprivate final List<EventBaseConverter>userEventFeedConvertersprivate final CustomErrorHandlererrorHandlerprivate final TaskAdaptertaskAdapterprivate Stringcultureprivate SSLSocketFactorysslSocketFactoryprivate X509TrustManagerx509TrustManager
-
Method Summary
Modifier and Type Method Description voidupdateCulture(String culture)Only setter for the settings because culture can be updated after building the initial settings. List<Interceptor>getHttpInterceptors()HttpUrlgetEndpoint()Returns the current endpoint used by the SDK. AuthenticatorgetAuthenticator()Returns the authentication provider implementation used by the SDK. longgetTimeoutInSeconds()Gets the OkHttp read and write timeout limit in ms PersistenceProvidergetPersistenceProvider()Map<Service, SpecialServiceEndpointDefinition>getSpecialServiceEndpoints()Returns a map containing endpoints for specific service endpoints, e.g. List<Interceptor>getNetworkInterceptors()CertificatePinnergetCertificatePinner()List<EventBaseConverter>getUserEventFeedConverters()Returns all user event feed converters in use. CustomErrorHandlergetErrorHandler()Returns the current error handler used by the SDK. TaskAdaptergetTaskAdapter()StringgetCulture()SSLSocketFactorygetSslSocketFactory()Returns SSLSocketFactory for custom certificates; X509TrustManagergetX509TrustManager()Returns x509TrustManager for custom certificates; -
-
Method Detail
-
updateCulture
void updateCulture(String culture)
Only setter for the settings because culture can be updated after building the initial settings.
- Parameters:
culture- The new culture to use, in the form e.g.
-
getHttpInterceptors
List<Interceptor> getHttpInterceptors()
-
getEndpoint
HttpUrl getEndpoint()
Returns the current endpoint used by the SDK.
-
getAuthenticator
Authenticator getAuthenticator()
Returns the authentication provider implementation used by the SDK.
-
getTimeoutInSeconds
long getTimeoutInSeconds()
Gets the OkHttp read and write timeout limit in ms
-
getPersistenceProvider
PersistenceProvider getPersistenceProvider()
-
getSpecialServiceEndpoints
Map<Service, SpecialServiceEndpointDefinition> getSpecialServiceEndpoints()
Returns a map containing endpoints for specific service endpoints, e.g. if acertain feature needs to communicate with a different server than the rest of the modules
-
getNetworkInterceptors
List<Interceptor> getNetworkInterceptors()
-
getCertificatePinner
@Nullable() CertificatePinner getCertificatePinner()
-
getUserEventFeedConverters
List<EventBaseConverter> getUserEventFeedConverters()
Returns all user event feed converters in use.
-
getErrorHandler
CustomErrorHandler getErrorHandler()
Returns the current error handler used by the SDK.
-
getTaskAdapter
TaskAdapter getTaskAdapter()
-
getCulture
String getCulture()
-
getSslSocketFactory
SSLSocketFactory getSslSocketFactory()
Returns SSLSocketFactory for custom certificates;
-
getX509TrustManager
X509TrustManager getX509TrustManager()
Returns x509TrustManager for custom certificates;
-
-
-
-