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.context - the android context object.appId - the Pinpoint Application Id.region - the AWS Regions for the Pinpoint service.credentialsProvider - The AWSCredentialsProvider to be used for the service.public PinpointConfiguration withClientConfiguration(ClientConfiguration clientConfig)
clientConfig - The ClientConfiguration of the service.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)
credentialsProvider - The AWSCredentialsProvider to be used for the servicepublic android.content.Context getAppContext()
public PinpointConfiguration withAppContext(android.content.Context context)
context - The android context objectpublic String getAppId()
public PinpointConfiguration withAppId(String appId)
appId - The Pinpoint Application Id.public Regions getRegion()
public PinpointConfiguration withRegion(Regions region)
region - The AWS Regions for the Pinpoint service.public PinpointCallback<PinpointManager> getInitCompletionCallback()
public PinpointConfiguration withInitCompletionCallback(PinpointCallback<PinpointManager> initCompletionCallback)
initCompletionCallback - A callback that is called after initialization of the SDK.Copyright © 2017. All rights reserved.