use of com.braintreepayments.api.internal.AnalyticsEvent in project braintree_android by braintree.
the class BraintreeFragment method sendAnalyticsEvent.
public void sendAnalyticsEvent(final String eventFragment) {
final AnalyticsEvent request = new AnalyticsEvent(mContext, getSessionId(), mIntegrationType, eventFragment);
waitForConfiguration(new ConfigurationListener() {
@Override
public void onConfigurationFetched(Configuration configuration) {
if (configuration.getAnalytics().isEnabled()) {
mAnalyticsDatabase.addEvent(request);
}
}
});
}
Aggregations