public class PinpointConfiguration
extends java.lang.Object
| Constructor and Description | 
|---|
| PinpointConfiguration(android.content.Context context,
                     AWSCredentialsProvider credentialsProvider,
                     AWSConfiguration awsConfiguration)Create an  PinpointConfigurationobject with the specified parameters. | 
| PinpointConfiguration(android.content.Context context,
                     java.lang.String appId,
                     Regions region,
                     AWSCredentialsProvider credentialsProvider)Deprecated.  | 
| PinpointConfiguration(android.content.Context context,
                     java.lang.String appId,
                     Regions region,
                     ChannelType channelType,
                     AWSCredentialsProvider credentialsProvider)Create an  PinpointConfigurationobject with the specified parameters. | 
| Modifier and Type | Method and Description | 
|---|---|
| android.content.Context | getAppContext()The Android Context. | 
| java.lang.String | getAppId()The Pinpoint AppId | 
| AppLevelOptOutProvider | getAppLevelOptOutProvider()The provider to call to check app-level opt out | 
| ChannelType | getChannelType()The channel type supported by this configuration. | 
| 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. | 
| java.util.concurrent.ExecutorService | getExecutor()The custom executor used for handlers in the TargetingClient. | 
| PinpointCallback<PinpointManager> | getInitCompletionCallback()The callback to be called after initialization is complete | 
| Regions | getRegion()The AWS Region configured | 
| boolean | getShouldPostNotificationsInForeground() | 
| 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(java.lang.String appId)The Pinpoint AppId | 
| PinpointConfiguration | withAppLevelOptOutProvider(AppLevelOptOutProvider appLevelOptOutProvider)The provider to call to check app-level opt out | 
| PinpointConfiguration | withChannelType(ChannelType channelType)The channel type configured. | 
| 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 | withExecutor(java.util.concurrent.ExecutorService executorService)Custom executor to use for handlers in the TargetingClient. | 
| PinpointConfiguration | withInitCompletionCallback(PinpointCallback<PinpointManager> initCompletionCallback)The callback to be called after initialization is complete | 
| PinpointConfiguration | withPostNotificationsInForeground(boolean shouldPostNotificationsInForeground)Configuration option to post notifications even if the app is in the foreground. | 
| PinpointConfiguration | withRegion(Regions region)The AWS Region for Pinpoint | 
public PinpointConfiguration(android.content.Context context,
                             java.lang.String appId,
                             Regions region,
                             ChannelType channelType,
                             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.channelType - the Pinpoint Channel type.credentialsProvider - The AWSCredentialsProvider to be used for the service.@Deprecated
public PinpointConfiguration(android.content.Context context,
                                         java.lang.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(android.content.Context context,
                             AWSCredentialsProvider credentialsProvider,
                             AWSConfiguration awsConfiguration)
PinpointConfiguration object with the specified parameters.context - the android context object.credentialsProvider - The AWSCredentialsProvider to be used for the service.awsConfiguration - the aws configuration.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 true.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 java.lang.String getAppId()
public PinpointConfiguration withAppId(java.lang.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.public AppLevelOptOutProvider getAppLevelOptOutProvider()
public PinpointConfiguration withAppLevelOptOutProvider(AppLevelOptOutProvider appLevelOptOutProvider)
appLevelOptOutProvider - A provider that returns a boolean indicating whether the app is
 opted out of notifications at the application level.public ChannelType getChannelType()
public PinpointConfiguration withChannelType(ChannelType channelType)
channelType - The ChannelType for this service.public PinpointConfiguration withPostNotificationsInForeground(boolean shouldPostNotificationsInForeground)
shouldPostNotificationsInForeground - true to indicate to post app notifications in the foreground.public java.util.concurrent.ExecutorService getExecutor()
public PinpointConfiguration withExecutor(java.util.concurrent.ExecutorService executorService)
executorService - the executor to use.public boolean getShouldPostNotificationsInForeground()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.