|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.mobileconnectors.amazonmobileanalytics.AnalyticsConfig
public class AnalyticsConfig
The AnalyticsConfig class allows developers to configure out Amazon Mobile Analytics behaves. It includes enabling/disabling the sending of events, so developers can easily develop applications that allow end-users to opt-in/opt-out of analytics collections. By default it allows events to only be sent over WIFI, but can be set to allow events to be sent over the mobile network. Finally developers can set any networking behavior that a low-level AWS client can change through a ClientConfiguration object.
Constructor Summary | |
---|---|
AnalyticsConfig()
Create an AnalyticsConfig object set to defaults. |
|
AnalyticsConfig(ClientConfiguration clientConfiguration)
Creates an AnalyticsConfig object with the specified client configuration configuration |
Method Summary | |
---|---|
boolean |
getAllowEventCollection()
Indicates whether or not event collection is enabled for the SDK. |
boolean |
getAllowWANDelivery()
Indicates whether or not events will be sent to the Amazon Mobile Analytics website over WAN (mobile) networks. |
ClientConfiguration |
getClientConfiguration()
Gets the client configuration this client will use when making requests. |
AnalyticsConfig |
withAllowsEventCollection(boolean allowEventCollection)
Sets whether or not event collection is enabled for the SDK. |
AnalyticsConfig |
withAllowsWANDelivery(boolean allowWANDelivery)
Sets whether or not events will be sent to the Amazon Mobile Analytics website over WAN (mobile) networks. |
AnalyticsConfig |
withClientConfiguration(ClientConfiguration clientConfig)
Sets the client configuration this client will use when making request |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnalyticsConfig()
AnalyticsConfig
object set to defaults. Which allows event collection and has WAN delivery set to true
public AnalyticsConfig(ClientConfiguration clientConfiguration)
AnalyticsConfig
object with the specified client configuration configuration
clientConfiguration
- Method Detail |
---|
public AnalyticsConfig withClientConfiguration(ClientConfiguration clientConfig)
public ClientConfiguration getClientConfiguration()
public AnalyticsConfig withAllowsEventCollection(boolean allowEventCollection)
allowEventCollection
-
public boolean getAllowEventCollection()
public AnalyticsConfig withAllowsWANDelivery(boolean allowWANDelivery)
allowWANDelivery
-
public boolean getAllowWANDelivery()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |