public class BVSDK
extends java.lang.Object
Main class for initializing the Bazaarvoice SDK, and changing global SDK state.
Must initialize the SDK upon Application startup
with the BVSDK.Builder.build()
method.
API keys for Shopper Advertising and Conversation must be provided to
the BVSDK.Builder.apiKeyShopperAdvertising(String)
and
BVSDK.Builder.apiKeyConversations(String)
methods respectively for each of the
desired components to function
Your client name and the application object must also be provided when
constructing the BVSDK.Builder
Modifier and Type | Class and Description |
---|---|
static class |
BVSDK.Builder
Initialization Builder that must be called in the
Application.onCreate() method
before any Bazaarvoice SDKs can be used. |
Modifier and Type | Method and Description |
---|---|
static BVSDK.Builder |
builder(android.app.Application application,
BazaarEnvironment bazaarEnvironment)
Uses the configuration file generated at
the installation and configuration page
to set all of the options for the sdk.
|
static BVSDK.Builder |
builder(android.app.Application application,
java.lang.String clientId)
Deprecated.
|
static BVSDK.Builder |
builderWithConfig(android.app.Application application,
BazaarEnvironment bazaarEnvironment,
BVConfig bvConfig) |
static BVSDK |
getInstance() |
void |
setUserAuthString(java.lang.String userAuthString)
Tell BVSDK who the user is.
|
public static BVSDK getInstance()
public void setUserAuthString(java.lang.String userAuthString)
userAuthString
- The Bazaarvoice-specific User Auth String. See the online documentation
for information on where this auth string comes from, and why it is
necessary.public static BVSDK.Builder builder(android.app.Application application, java.lang.String clientId)
builder(Application, BazaarEnvironment)
application
- Application ObjectclientId
- Your Bazaarvoice provided client id (e.g. "mycompany")builder(Application, BazaarEnvironment)
public static BVSDK.Builder builder(android.app.Application application, BazaarEnvironment bazaarEnvironment)
application
- The application objectbazaarEnvironment
- The environment that will be used for Bazaarvoice requestspublic static BVSDK.Builder builderWithConfig(android.app.Application application, BazaarEnvironment bazaarEnvironment, BVConfig bvConfig)