-
public final class ParametersParameters to get and set parameters
-
-
Field Summary
Fields Modifier and Type Field Description public final static booleanENABLE_DEV_LOGSpublic final static booleanENABLE_WS_INTERCEPTORpublic final static StringSDK_VERSIONpublic final static intAPI_LEVELpublic final static intMESSAGING_API_LEVELpublic final static StringLIBRARY_BUNDLEpublic final static StringDOMAIN_URLpublic final static StringPLUGIN_VERSION_ENVIRONEMENT_VARpublic final static StringBRIDGE_VERSION_ENVIRONEMENT_VARpublic final static StringSTART_WS_URLpublic final static StringTRACKER_WS_URLpublic final static StringPUSH_WS_URLpublic final static StringATTR_SEND_WS_URLpublic final static StringATTR_CHECK_WS_URLpublic final static StringLOCAL_CAMPAIGNS_WS_URLpublic final static StringINBOX_FETCH_WS_URLpublic final static StringINBOX_SYNC_WS_URLpublic final static StringDISPLAY_RECEIPT_WS_URLpublic final static StringMETRIC_WS_URLpublic final static StringLOCAL_CAMPAIGNS_JIT_WS_URLpublic final static StringPARAMETERS_KEY_PREFIX
-
Constructor Summary
Constructors Constructor Description Parameters(Context context)
-
Method Summary
Modifier and Type Method Description Stringget(String key)Get parameter value Stringget(String key, String fallback)Get parameter value. voidset(@NonNull() String key, @NonNull() String value, boolean save)Set the parameter voidsetOrRemove(@NonNull() String key, @Nullable() String value, boolean save)Set the parameter or remove it if null voidremove(String key)Remove the value of the given parameter voidwipeData()Clear all parameters -
-
Constructor Detail
-
Parameters
Parameters(Context context)
- Parameters:
context- The Android's context
-
-
Method Detail
-
get
String get(String key, String fallback)
Get parameter value.
- Parameters:
key- The key of the parameterfallback- The fallback if no value found
-
set
void set(@NonNull() String key, @NonNull() String value, boolean save)
Set the parameter
- Parameters:
key- The key of the parametervalue- the value of the parametersave- if true, the value will be here at next app launch, it will be lost otherwise
-
setOrRemove
void setOrRemove(@NonNull() String key, @Nullable() String value, boolean save)
Set the parameter or remove it if null
- Parameters:
key- The key of the parametervalue- the value of the parametersave- if true, the value will be here at next app launch, it will be lost otherwise
-
remove
void remove(String key)
Remove the value of the given parameter
- Parameters:
key- The key of the parameter to remove
-
wipeData
void wipeData()
Clear all parameters
-
-
-
-