public static class BVSDK.Builder
extends java.lang.Object
Application.onCreate()
method
before any Bazaarvoice SDKs can be used.Constructor and Description |
---|
Builder(android.app.Application application,
java.lang.String clientId)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
BVSDK.Builder |
analyticsDefaultLocale(java.util.Locale analyticsDefaultLocale)
Sets the default local to be used in calculating the proper resource
path for the analytics endpoint.
|
BVSDK.Builder |
apiKeyConversations(java.lang.String apiKeyConversations)
Deprecated.
Now use
BVSDK.builder(Application, BazaarEnvironment) which
will set this value for you |
BVSDK.Builder |
apiKeyConversationsStores(java.lang.String apiKeyConversationsStores)
Deprecated.
Now use
BVSDK.builder(Application, BazaarEnvironment) which
will set this value for you |
BVSDK.Builder |
apiKeyCurations(java.lang.String apiKeyCurations)
Deprecated.
Now use
BVSDK.builder(Application, BazaarEnvironment) which
will set this value for you |
BVSDK.Builder |
apiKeyLocation(java.lang.String apiKeyLocation)
Deprecated.
Now use
BVSDK.builder(Application, BazaarEnvironment) which
will set this value for you |
BVSDK.Builder |
apiKeyShopperAdvertising(java.lang.String apiKeyShopperAdvertising)
Deprecated.
Now use
BVSDK.builder(Application, BazaarEnvironment) which
will set this value for you |
BVSDK.Builder |
bazaarEnvironment(BazaarEnvironment bazaarEnvironment)
Deprecated.
|
BVSDK |
build() |
BVSDK.Builder |
dryRunAnalytics(boolean dryRunAnalytics)
Disables analytics, but still logs the events sent.
|
BVSDK.Builder |
logLevel(BVLogLevel logLevel) |
BVSDK.Builder |
okHttpClient(OkHttpClient okHttpClient) |
public Builder(android.app.Application application, java.lang.String clientId)
BVSDK.builder(Application, BazaarEnvironment)
or
BVSDK.builder(Application, BazaarEnvironment)
application
- Required Application ObjectclientId
- Client id used to get custom resultsBVSDK.builder(Application, BazaarEnvironment)
public BVSDK.Builder bazaarEnvironment(BazaarEnvironment bazaarEnvironment)
BVSDK.builder(Application, BazaarEnvironment)
bazaarEnvironment
- Bazaarvoice environment to get data frompublic BVSDK.Builder apiKeyShopperAdvertising(java.lang.String apiKeyShopperAdvertising)
BVSDK.builder(Application, BazaarEnvironment)
which
will set this value for youapiKeyShopperAdvertising
- API Key required to access Recommendations and Ads SDKpublic BVSDK.Builder apiKeyConversations(java.lang.String apiKeyConversations)
BVSDK.builder(Application, BazaarEnvironment)
which
will set this value for youapiKeyConversations
- API Key required to access Conversations SDKpublic BVSDK.Builder apiKeyConversationsStores(java.lang.String apiKeyConversationsStores)
BVSDK.builder(Application, BazaarEnvironment)
which
will set this value for youapiKeyConversationsStores
- API Key required to access Conversations SDKpublic BVSDK.Builder apiKeyCurations(java.lang.String apiKeyCurations)
BVSDK.builder(Application, BazaarEnvironment)
which
will set this value for youapiKeyCurations
- API Key required to access Curations SDKpublic BVSDK.Builder apiKeyLocation(java.lang.String apiKeyLocation)
BVSDK.builder(Application, BazaarEnvironment)
which
will set this value for youapiKeyLocation
- API Key required to access Location SDKpublic BVSDK.Builder logLevel(BVLogLevel logLevel)
logLevel
- The level at which the Bazaarvoice SDK will decide to logpublic BVSDK.Builder okHttpClient(OkHttpClient okHttpClient)
okHttpClient
- A custom client instance. This instance will be duplicated and an http cache will
be added.public BVSDK.Builder dryRunAnalytics(boolean dryRunAnalytics)
dryRunAnalytics
- If true then analytics events will not be sentpublic BVSDK.Builder analyticsDefaultLocale(java.util.Locale analyticsDefaultLocale)
analyticsDefaultLocale
- If true then analytics events will not be sentpublic BVSDK build()