public class HyperwalletInsight
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
HyperwalletInsight.ErrorParamsBuilder |
static class |
HyperwalletInsight.TransferMethodParamsBuilder |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LINK_SELECT_TRANSFER_METHOD_COUNTRY |
static java.lang.String |
LINK_SELECT_TRANSFER_METHOD_CREATE |
static java.lang.String |
LINK_SELECT_TRANSFER_METHOD_CURRENCY |
static java.lang.String |
LINK_SELECT_TRANSFER_METHOD_SELECT |
static java.lang.String |
TRANSFER_METHOD_GOAL |
Modifier and Type | Method and Description |
---|---|
static void |
clearInstance()
Clears instance of classes
Insight and HyperwalletInsight |
static HyperwalletInsight |
getInstance()
Returns instance of HyperwalletInsight or initializes it if it is null.
|
void |
initialize(android.content.Context context,
Configuration configuration)
Initializes the Insight library using the given parameters.
|
void |
initialize(android.content.Context context,
HyperwalletAuthenticationTokenProvider provider)
Initialize insight in BG mode
|
static void |
setInstance(HyperwalletInsight hyperwalletInsight) |
void |
trackClick(android.content.Context context,
java.lang.String pageName,
java.lang.String pageGroup,
java.lang.String link,
java.util.Map<java.lang.String,java.lang.String> params)
Used to track an intentional interaction by the user.
|
void |
trackError(android.content.Context context,
java.lang.String pageName,
java.lang.String pageGroup,
java.util.Map<java.lang.String,java.lang.String> params)
Used to track an error received by the user.
|
void |
trackImpression(android.content.Context context,
java.lang.String pageName,
java.lang.String pageGroup,
java.util.Map<java.lang.String,java.lang.String> params)
Used to track an impression by a user.
|
public static final java.lang.String LINK_SELECT_TRANSFER_METHOD_SELECT
public static final java.lang.String LINK_SELECT_TRANSFER_METHOD_CREATE
public static final java.lang.String LINK_SELECT_TRANSFER_METHOD_CURRENCY
public static final java.lang.String LINK_SELECT_TRANSFER_METHOD_COUNTRY
public static final java.lang.String TRANSFER_METHOD_GOAL
public static HyperwalletInsight getInstance()
public static void setInstance(HyperwalletInsight hyperwalletInsight)
public void initialize(android.content.Context context, Configuration configuration)
context
- the context using Insightconfiguration
- Configuration object containing information about the sessionpublic void initialize(android.content.Context context, HyperwalletAuthenticationTokenProvider provider)
context
- Application contextprovider
- Hyperwallet authentication providerpublic static void clearInstance()
Insight
and HyperwalletInsight
public void trackImpression(android.content.Context context, java.lang.String pageName, java.lang.String pageGroup, java.util.Map<java.lang.String,java.lang.String> params)
context
- Context where the tracking is happeningpageName
- an arbituary pageName the user is currently viewing as defined by the apppageGroup
- an arbituary pageGroup the user is currently viewing as defined by the appparams
- additional information that can be added to make the tracking event more usefulpublic void trackClick(android.content.Context context, java.lang.String pageName, java.lang.String pageGroup, java.lang.String link, java.util.Map<java.lang.String,java.lang.String> params)
context
- Context where the tracking is happeningpageName
- an arbituary pageName the user is currently viewing as defined by the apppageGroup
- an arbituary pageGroup the user is currently viewing as defined by the applink
- the link the user is currently viewing as defined by the appparams
- additional information that can be added to make the tracking event more usefulpublic void trackError(android.content.Context context, java.lang.String pageName, java.lang.String pageGroup, java.util.Map<java.lang.String,java.lang.String> params)
context
- Context where the tracking is happeningpageName
- an arbituary pageName the user is currently viewing as defined by the apppageGroup
- an arbituary pageGroup the user is currently viewing as defined by the appparams
- contains information regarding the error