public class PinnedAmplitudeClient extends AmplitudeClient
Modifier and Type | Class and Description |
---|---|
protected static class |
PinnedAmplitudeClient.SSLContextBuilder
SSl context builder, used to generate the SSL context.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
initializedSSLSocketFactory
The Initialized ssl socket factory.
|
protected static PinnedAmplitudeClient.SSLContextBuilder |
SSL_CONTEXT_API_AMPLITUDE_COM
Pinned certificate chain for api.amplitude.com.
|
protected javax.net.ssl.SSLSocketFactory |
sslSocketFactory
The SSl socket factory.
|
apiKey, context, dbHelper, DEVICE_ID_KEY, deviceId, END_SESSION_EVENT, httpClient, initialized, instanceName, LAST_EVENT_ID_KEY, LAST_EVENT_TIME_KEY, LAST_IDENTIFY_ID_KEY, OPT_OUT_KEY, platform, PREVIOUS_SESSION_ID_KEY, SEQUENCE_NUMBER_KEY, START_SESSION_EVENT, USER_ID_KEY, userId
Constructor and Description |
---|
PinnedAmplitudeClient(java.lang.String instance)
Instantiates a new Pinned amplitude client.
|
Modifier and Type | Method and Description |
---|---|
static PinnedAmplitudeClient |
getInstance()
Gets the default instance.
|
static PinnedAmplitudeClient |
getInstance(java.lang.String instance)
Gets the specified instance.
|
protected javax.net.ssl.SSLSocketFactory |
getPinnedCertSslSocketFactory()
Gets pinned cert ssl socket factory.
|
protected javax.net.ssl.SSLSocketFactory |
getPinnedCertSslSocketFactory(PinnedAmplitudeClient.SSLContextBuilder context)
Gets pinned cert ssl socket factory.
|
AmplitudeClient |
initialize(android.content.Context context,
java.lang.String apiKey,
java.lang.String userId)
Initialize the Amplitude SDK with the Android application context, your Amplitude App API
key, and a user ID for the current user.
|
bytesToHexString, clearUserProperties, contextAndApiKeySet, disableCoppaControl, disableDiagnosticLogging, disableLocationListening, enableCoppaControl, enableDiagnosticLogging, enableForegroundTracking, enableLocationListening, enableLogging, enableNewDeviceIdPerInstall, getCurrentTimeMillis, getDeviceId, getSessionId, getUserId, groupIdentify, groupIdentify, identify, identify, initialize, initialize, isOptedOut, logEvent, logEvent, logEvent, logEvent, logEvent, logEvent, logEvent, logEventAsync, logEventSync, logEventSync, logEventSync, logEventSync, logEventSync, logEventSync, logRevenue, logRevenue, logRevenue, logRevenueV2, makeEventUploadPostRequest, mergeEventsAndIdentifys, regenerateDeviceId, replaceWithJSONNull, runOnLogThread, saveEvent, setBearerToken, setDeviceId, setDiagnosticEventMaxCount, setEventMaxCount, setEventUploadMaxBatchSize, setEventUploadPeriodMillis, setEventUploadThreshold, setFlushEventsOnClose, setGroup, setLogLevel, setMinTimeBetweenSessionsMillis, setOffline, setOptOut, setServerUrl, setSessionTimeoutMillis, setTrackingOptions, setUserId, setUserId, setUserProperties, setUserProperties, startNewSessionIfNeeded, trackSessionEvents, truncate, truncate, truncate, updateServer, updateServer, uploadEvents, useAdvertisingIdForDeviceId, validateLogEvent
protected static final PinnedAmplitudeClient.SSLContextBuilder SSL_CONTEXT_API_AMPLITUDE_COM
protected javax.net.ssl.SSLSocketFactory sslSocketFactory
protected boolean initializedSSLSocketFactory
public PinnedAmplitudeClient(java.lang.String instance)
public static PinnedAmplitudeClient getInstance()
public static PinnedAmplitudeClient getInstance(java.lang.String instance)
instance
- name to get "ex app 1"public AmplitudeClient initialize(android.content.Context context, java.lang.String apiKey, java.lang.String userId)
AmplitudeClient
initialize
in class AmplitudeClient
context
- the Android application contextapiKey
- your Amplitude App API keyuserId
- the user id to setprotected javax.net.ssl.SSLSocketFactory getPinnedCertSslSocketFactory()
protected javax.net.ssl.SSLSocketFactory getPinnedCertSslSocketFactory(PinnedAmplitudeClient.SSLContextBuilder context)
context
- the context