public class PinpointConfiguration extends Object
| Constructor and Description |
|---|
PinpointConfiguration(android.content.Context context,
String appId,
Regions region,
AWSCredentialsProvider credentialsProvider)
Create an
PinpointConfiguration object with the specified parameters. |
| Modifier and Type | Method and Description |
|---|---|
android.content.Context |
getAppContext()
The Android Context.
|
String |
getAppId()
The Pinpoint AppId
|
ClientConfiguration |
getClientConfiguration()
Gets the client configuration this client will use when making requests.
|
AWSCredentialsProvider |
getCredentialsProvider()
The credentials provider used in order to authenticate.
|
boolean |
getEnableEvents()
Indicates whether or not event collection is enabled for the SDK.
|
boolean |
getEnableTargeting()
Indicates whether or not endpoint registration for Pinpoint is enabled for the SDK.
|
PinpointCallback<PinpointManager> |
getInitCompletionCallback()
The callback to be called after initialization is complete
|
Regions |
getRegion()
The AWS Region configured
|
PinpointConfiguration |
withAllowsEventCollection(boolean allowEventCollection)
Sets whether or not event collection is enabled for the SDK.
|
PinpointConfiguration |
withAppContext(android.content.Context context)
The Android Context.
|
PinpointConfiguration |
withAppId(String appId)
The Pinpoint AppId
|
PinpointConfiguration |
withClientConfiguration(ClientConfiguration clientConfig)
Sets the client configuration this client will use when making request
|
PinpointConfiguration |
withCredentialsProvider(AWSCredentialsProvider credentialsProvider)
Please provide a CognitoCredentialsProvider in order to authenticate.
|
PinpointConfiguration |
withEnablePinpoint(boolean enablePinpoint)
Enables pinpoint and endpoint registration.
|
PinpointConfiguration |
withInitCompletionCallback(PinpointCallback<PinpointManager> initCompletionCallback)
The callback to be called after initialization is complete
|
PinpointConfiguration |
withRegion(Regions region)
The AWS Region for Pinpoint
|
public PinpointConfiguration(android.content.Context context,
String appId,
Regions region,
AWSCredentialsProvider credentialsProvider)
PinpointConfiguration object with the specified parameters.public PinpointConfiguration withClientConfiguration(ClientConfiguration clientConfig)
public ClientConfiguration getClientConfiguration()
public PinpointConfiguration withAllowsEventCollection(boolean allowEventCollection)
allowEventCollection - true if event collection should be allowed, otherwise false.public boolean getEnableEvents()
public boolean getEnableTargeting()
public PinpointConfiguration withEnablePinpoint(boolean enablePinpoint)
enablePinpoint - true if Pinpoint to be enabled. Defaults to false.public AWSCredentialsProvider getCredentialsProvider()
public PinpointConfiguration withCredentialsProvider(AWSCredentialsProvider credentialsProvider)
public android.content.Context getAppContext()
public PinpointConfiguration withAppContext(android.content.Context context)
public String getAppId()
public PinpointConfiguration withAppId(String appId)
public Regions getRegion()
public PinpointConfiguration withRegion(Regions region)
public PinpointCallback<PinpointManager> getInitCompletionCallback()
public PinpointConfiguration withInitCompletionCallback(PinpointCallback<PinpointManager> initCompletionCallback)
Copyright © 2016. All rights reserved.