public class Settings
extends java.lang.Object
Constructor and Description |
---|
Settings() |
Modifier and Type | Method and Description |
---|---|
boolean |
backgroundEventUpload()
Test if background event uploading is enabled.
|
int |
backgroundEventUploadRepeatRateSeconds()
The background upload repeat rate.
|
int |
backgroundEventUploadStartDelaySeconds()
The delay in seconds before background upload starts.
|
boolean |
debugMode()
Gets the SDK debig mode.
|
EventActionHandler.GameParametersHandler |
getDefaultGameParametersHandler() |
EventActionHandler.ImageMessageHandler |
getDefaultImageMessageHandler() |
int |
getEngageCacheExpiry()
Gets the Engage cache expiry value.
|
int |
getHttpRequestCollectTimeout()
Gets the connection timeout in seconds for Collect HTTP requests.
|
int |
getHttpRequestConfigMaxRetries()
Gets the number of retries to perform when an Session Configuration HTTP request fails.
|
int |
getHttpRequestConfigRetryDelayFactor()
Gets the time factor in seconds between failed Session Configuration HTTP requests.
|
int |
getHttpRequestConfigTimeout()
Gets the connection timeout in seconds for Session Configuration HTTP requests.
|
int |
getHttpRequestEngageTimeout()
Gets the connection timeout in seconds for Engage HTTP requests.
|
int |
getHttpRequestMaxRetries()
Gets the number of retries to perform when an HTTP request fails.
|
int |
getHttpRequestRetryDelay()
Gets the time to wait in seconds before retrying HTTP requests.
|
int |
getSessionTimeout()
Gets the session timeout.
|
boolean |
isMultipleActionsForEventTriggerEnabled()
Gets whether multiple actions should be processed when evaluating Event-Triggers for an event.
|
boolean |
isUseInternalStorageForEngage() |
boolean |
isUseInternalStorageForEvents() |
boolean |
isUseInternalStorageForImageMessages() |
boolean |
onFirstRunSendNewPlayerEvent()
TRUE to send new player event on first run of application.
|
boolean |
onInitSendClientDeviceEvent()
TRUE to send the client device event.
|
boolean |
onInitSendGameStartedEvent()
TRUE to send the game started event.
|
void |
setBackgroundEventUpload(boolean b)
Sets the background uploading behaviour.
|
void |
setBackgroundEventUploadRepeatRateSeconds(int i)
Sets the background upload repeat rate.
|
void |
setBackgroundEventUploadStartDelaySeconds(int i)
Sets the delay before background upload starts.
|
void |
setDebugMode(boolean b)
Sets the SDK debug mode.
|
void |
setDefaultGameParametersHandler(EventActionHandler.GameParametersHandler defaultGameParametersHandler) |
void |
setDefaultImageMessageHandler(EventActionHandler.ImageMessageHandler defaultImageMessageHandler) |
Settings |
setEngageCacheExpiry(int seconds)
Sets the Engage cache expiry value.
|
void |
setHttpRequestCollectTimeout(int seconds)
Sets the connection timeout in seconds for Collect HTTP requests.
|
void |
setHttpRequestConfigMaxRetries(int httpRequestConfigMaxRetries)
Sets the number of retries to perform when an Session Configuration HTTP request fails.
|
void |
setHttpRequestConfigRetryDelayFactor(int httpRequestConfigRetryDelayFactor) |
void |
setHttpRequestConfigTimeout(int timeoutInSeconds)
Sets the connection timeout in seconds for Session Configuration HTTP requests.
|
void |
setHttpRequestEngageTimeout(int seconds)
Sets the connection timeout in seconds for Engage HTTP requests.
|
void |
setHttpRequestMaxRetries(int retries)
Sets the number of retries to perform when an HTTP request fails.
|
void |
setHttpRequestRetryDelay(int seconds)
Sets the time to wait in seconds before retrying HTTP requests.
|
void |
setMultipleActionsForEventTriggerEnabled(boolean multipleActionsForEventTriggerEnabled)
Sets whether multiple actions should be processed when evaluating Event-Triggers for an event.
|
void |
setOnFirstRunSendNewPlayerEvent(boolean b)
Sets the first run event behaviour.
|
void |
setOnInitSendClientDeviceEvent(boolean b)
Sets the client device event behaviour.
|
void |
setOnInitSendGameStartedEvent(boolean b)
Sets the game started event behaviour.
|
void |
setSessionTimeout(int timeout)
Sets the session timeout.
|
void |
setUseInternalStorageForEngage(boolean useInternal) |
void |
setUseInternalStorageForEvents(boolean useInternal) |
void |
setUseInternalStorageForImageMessages(boolean useInternal) |
public boolean onFirstRunSendNewPlayerEvent()
public void setOnFirstRunSendNewPlayerEvent(boolean b)
b
- TRUE to send new player event on first run, FALSE otherwise.public boolean onInitSendClientDeviceEvent()
public void setOnInitSendClientDeviceEvent(boolean b)
b
- TRUE to send client device event, FALSE otherwise.public boolean onInitSendGameStartedEvent()
public void setOnInitSendGameStartedEvent(boolean b)
b
- TRUE to send game started event, FALSE otherwise.public boolean debugMode()
public void setDebugMode(boolean b)
b
- The new SDK debug mode.public boolean backgroundEventUpload()
public void setBackgroundEventUpload(boolean b)
b
- TRUE to enable background uploading, FALSE otherwise.public int backgroundEventUploadStartDelaySeconds()
public void setBackgroundEventUploadStartDelaySeconds(int i)
i
- The new delay in seconds.public int backgroundEventUploadRepeatRateSeconds()
public void setBackgroundEventUploadRepeatRateSeconds(int i)
i
- The new background upload repeat rate in seconds.public int getSessionTimeout()
public void setSessionTimeout(int timeout)
A timeout of 0 will disable automatic session refreshing.
timeout
- the session timeout, in millisecondsjava.lang.IllegalArgumentException
- if timeout
is negativepublic int getEngageCacheExpiry()
public Settings setEngageCacheExpiry(int seconds)
A value of 0 will disable the Engage cache.
seconds
- the Engage cache expiry value, in secondsSettings
instancejava.lang.IllegalArgumentException
- if seconds
is negativepublic int getHttpRequestMaxRetries()
Only applies to Collect requests.
public void setHttpRequestMaxRetries(int retries)
0
means no retries will be performed.
Only applies to Collect requests.
retries
- the number of retriesjava.lang.IllegalArgumentException
- if the retries
is negativepublic int getHttpRequestRetryDelay()
Only applies to Collect requests.
public void setHttpRequestRetryDelay(int seconds)
Only applies to Collect requests.
seconds
- the time to wait in secondsjava.lang.IllegalArgumentException
- if the seconds
is negativepublic int getHttpRequestCollectTimeout()
public void setHttpRequestCollectTimeout(int seconds)
seconds
- the timeout in secondsjava.lang.IllegalArgumentException
- if the seconds
is negativepublic int getHttpRequestEngageTimeout()
public void setHttpRequestEngageTimeout(int seconds)
seconds
- the timeout in secondsjava.lang.IllegalArgumentException
- if the seconds
is negativepublic boolean isUseInternalStorageForEvents()
public void setUseInternalStorageForEvents(boolean useInternal)
public boolean isUseInternalStorageForEngage()
public void setUseInternalStorageForEngage(boolean useInternal)
public boolean isUseInternalStorageForImageMessages()
public void setUseInternalStorageForImageMessages(boolean useInternal)
public boolean isMultipleActionsForEventTriggerEnabled()
public void setMultipleActionsForEventTriggerEnabled(boolean multipleActionsForEventTriggerEnabled)
public EventActionHandler.ImageMessageHandler getDefaultImageMessageHandler()
public void setDefaultImageMessageHandler(EventActionHandler.ImageMessageHandler defaultImageMessageHandler)
public EventActionHandler.GameParametersHandler getDefaultGameParametersHandler()
public void setDefaultGameParametersHandler(EventActionHandler.GameParametersHandler defaultGameParametersHandler)
public int getHttpRequestConfigTimeout()
public void setHttpRequestConfigTimeout(int timeoutInSeconds)
public int getHttpRequestConfigRetryDelayFactor()
public void setHttpRequestConfigRetryDelayFactor(int httpRequestConfigRetryDelayFactor)
public int getHttpRequestConfigMaxRetries()
0
means no retries will be performed.
Only applies to Session Configuration requests.
java.lang.IllegalArgumentException
- if the retries
is negativepublic void setHttpRequestConfigMaxRetries(int httpRequestConfigMaxRetries)
0
means no retries will be performed.
Only applies to Session Configuration requests.
httpRequestConfigMaxRetries
- the number of retriesjava.lang.IllegalArgumentException
- if the retries
is negative