public class MPConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
static int |
UI_FEATURES_MIN_API
Minimum API level for support of rich UI features, like In-App notifications and dynamic event binding.
|
static java.lang.String |
VERSION |
public static final java.lang.String VERSION
public static boolean DEBUG
public static final int UI_FEATURES_MIN_API
public static MPConfig getInstance(android.content.Context context)
public void setSSLSocketFactory(javax.net.ssl.SSLSocketFactory factory)
<pre>
MPConfig.getInstance(context).setSSLSocketFactory(someCustomizedSocketFactory);
</pre>
Your settings will be globally available to all Mixpanel instances, and will be used for
all SSL connections in the library. The call is thread safe, but should be done before
your first call to MixpanelAPI.getInstance to insure that the library never uses it's
default.
The given socket factory may be used from multiple threads, which is safe for the system
SSLSocketFactory class, but if you pass a subclass you should ensure that it is thread-safe
before passing it to Mixpanel.factory - an SSLSocketFactory thatpublic void setOfflineMode(OfflineMode offlineMode)
OfflineMode allows Mixpanel to be in-sync with client offline internal logic.
If you want to integrate your own logic with Mixpanel you'll need to call
setOfflineMode(OfflineMode) early in your code, like this
<pre>
MPConfig.getInstance(context).setOfflineMode(OfflineModeImplementation);
</pre>
Your settings will be globally available to all Mixpanel instances, and will be used across
all the library. The call is thread safe, but should be done before
your first call to MixpanelAPI.getInstance to insure that the library never uses it's
default.
The given OfflineMode may be used from multiple threads, you should ensure that
your implementation is thread-safe before passing it to Mixpanel.offlineMode - client offline implementation to use on Mixpanelpublic int getBulkUploadLimit()
public int getFlushInterval()
public boolean getFlushOnBackground()
public long getDataExpiration()
public int getMinimumDatabaseLimit()
public boolean getDisableGestureBindingUI()
public boolean getDisableEmulatorBindingUI()
public boolean getDisableAppOpenEvent()
public boolean getDisableViewCrawler()
public java.lang.String[] getDisableViewCrawlerForProjects()
public boolean getTestMode()
public java.lang.String getEventsEndpoint()
public void setServerURL(java.lang.String serverURL)
public java.lang.String getPeopleEndpoint()
public java.lang.String getGroupsEndpoint()
public java.lang.String getDecideEndpoint()
public boolean getAutoShowMixpanelUpdates()
public java.lang.String getEditorUrl()
public boolean getDisableDecideChecker()
public boolean getIgnoreInvisibleViewsEditor()
public int getNotificationDefaults()
public int getMinimumSessionDuration()
public int getSessionTimeoutDuration()
public boolean getDisableExceptionHandler()
public java.lang.String getNotificationChannelId()
public java.lang.String getNotificationChannelName()
public int getNotificationChannelImportance()
public void setUseIpAddressForGeolocation(boolean useIpAddressForGeolocation)
public void setEnableLogging(boolean enableLogging)
public java.lang.String getResourcePackageName()
public javax.net.ssl.SSLSocketFactory getSSLSocketFactory()
public OfflineMode getOfflineMode()
public int getImageCacheMaxMemoryFactor()
public java.lang.String toString()
toString in class java.lang.Object