-
public final class ConfigurationConfiguration is the configuration for the Prelude SDK.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classConfiguration.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StringendpointAddressprivate Contextcontextprivate StringsdkKeyprivate Endpointendpointprivate List<Features>implementedFeaturesprivate LongrequestTimeoutprivate IntegermaxRetries
-
Constructor Summary
Constructors Constructor Description Configuration(Context context, String sdkKey, Endpoint endpoint, List<Features> implementedFeatures, Long requestTimeout, Integer maxRetries)Configuration(Context context, String sdkKey, Endpoint endpoint, List<Features> implementedFeatures, Long requestTimeout)Configuration(Context context, String sdkKey, Endpoint endpoint, List<Features> implementedFeatures)Configuration(Context context, String sdkKey, Endpoint endpoint)Configuration(Context context, String sdkKey)
-
Method Summary
Modifier and Type Method Description final StringgetEndpointAddress()final ContextgetContext()The Android application context. final UnitsetContext(Context context)The Android application context. final StringgetSdkKey()The SDK key that identifies your app within the Prelude API. final UnitsetSdkKey(String sdkKey)The SDK key that identifies your app within the Prelude API. final EndpointgetEndpoint()The endpoint address of the Prelude API. final UnitsetEndpoint(Endpoint endpoint)The endpoint address of the Prelude API. final List<Features>getImplementedFeatures()The list of features to be advertised as supported by the local implementation of the Prelude SDK. final UnitsetImplementedFeatures(List<Features> implementedFeatures)The list of features to be advertised as supported by the local implementation of the Prelude SDK. final LonggetRequestTimeout()The timeout in milliseconds for the network requests. final UnitsetRequestTimeout(Long requestTimeout)The timeout in milliseconds for the network requests. final IntegergetMaxRetries()The maximum number of automatic retries for the network requests in case of server errors and timeouts. final UnitsetMaxRetries(Integer maxRetries)The maximum number of automatic retries for the network requests in case of server errors and timeouts. -
-
Constructor Detail
-
Configuration
Configuration(Context context, String sdkKey, Endpoint endpoint, List<Features> implementedFeatures, Long requestTimeout, Integer maxRetries)
-
Configuration
Configuration(Context context, String sdkKey, Endpoint endpoint, List<Features> implementedFeatures, Long requestTimeout)
-
Configuration
Configuration(Context context, String sdkKey, Endpoint endpoint, List<Features> implementedFeatures)
-
-
Method Detail
-
getEndpointAddress
final String getEndpointAddress()
-
getContext
final Context getContext()
The Android application context.
-
setContext
final Unit setContext(Context context)
The Android application context.
-
setSdkKey
final Unit setSdkKey(String sdkKey)
The SDK key that identifies your app within the Prelude API.
-
getEndpoint
final Endpoint getEndpoint()
The endpoint address of the Prelude API.
-
setEndpoint
final Unit setEndpoint(Endpoint endpoint)
The endpoint address of the Prelude API.
-
getImplementedFeatures
final List<Features> getImplementedFeatures()
The list of features to be advertised as supported by the local implementation of the Prelude SDK.
-
setImplementedFeatures
final Unit setImplementedFeatures(List<Features> implementedFeatures)
The list of features to be advertised as supported by the local implementation of the Prelude SDK.
-
getRequestTimeout
final Long getRequestTimeout()
The timeout in milliseconds for the network requests.
-
setRequestTimeout
final Unit setRequestTimeout(Long requestTimeout)
The timeout in milliseconds for the network requests.
-
getMaxRetries
final Integer getMaxRetries()
The maximum number of automatic retries for the network requests in case of server errors and timeouts.
-
setMaxRetries
final Unit setMaxRetries(Integer maxRetries)
The maximum number of automatic retries for the network requests in case of server errors and timeouts.
-
-
-
-