public class TargetingClient extends Object
| Constructor and Description |
|---|
TargetingClient(com.amazonaws.mobileconnectors.pinpoint.internal.core.PinpointContext context) |
TargetingClient(com.amazonaws.mobileconnectors.pinpoint.internal.core.PinpointContext context,
ThreadPoolExecutor executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String attributeName,
List<String> attributeValues)
Adds the specified attribute to the current endpoint profile generated by this client.
|
void |
addMetric(String metricName,
Double metricValue)
Adds the specified metric to the current endpoint profile generated by this client.
|
EndpointProfile |
currentEndpoint()
Returns the device endpoint profile.
|
void |
removeAttribute(String attributeName)
Removes the specified attribute.
|
void |
removeMetric(String metricName)
Removes the specified metric from the current endpoint profile generated by this client.
|
void |
updateEndpointProfile()
Register the current endpoint with the Pinpoint service.
|
void |
updateEndpointProfile(EndpointProfile endpointProfile)
Register the provided endpoint with the Pinpoint service.
|
public TargetingClient(com.amazonaws.mobileconnectors.pinpoint.internal.core.PinpointContext context, ThreadPoolExecutor executor)
public TargetingClient(com.amazonaws.mobileconnectors.pinpoint.internal.core.PinpointContext context)
public EndpointProfile currentEndpoint()
public void updateEndpointProfile()
public void updateEndpointProfile(EndpointProfile endpointProfile)
public void addAttribute(String attributeName, List<String> attributeValues)
attributeName - the name of the attribute to addattributeValues - the value of the attributepublic void removeAttribute(String attributeName)
attributeName - the name of the attribute to removepublic void addMetric(String metricName, Double metricValue)
metricName - the name of the metric to addmetricValue - the value of the metricpublic void removeMetric(String metricName)
metricName - the name of the metric to removeCopyright © 2016. All rights reserved.