Class AnalyticsContext
java.lang.Object
com.codename1.analytics.AnalyticsContext
Immutable bundle of ambient information shared with every provider through
AnalyticsProvider.init(AnalyticsContext). The Analytics
facade assembles it once from Display properties and the
pseudonymous client id so providers do not each have to re-derive it.-
Method Summary
Modifier and TypeMethodDescriptionThe user-facing application name.The application version string.The pseudonymous, user-resettable client id.The device locale (for exampleen_US).The platform name as reported byDisplay.getPlatformName()(for exampleand,ios,mac).
-
Method Details
-
getAppName
The user-facing application name.
Returns
the app name
-
getAppVersion
The application version string.
Returns
the app version
-
getClientId
The pseudonymous, user-resettable client id. This is not derived from any hardware identifier and may be cleared via
Analytics.resetClientId()to honour erasure requests.Returns
the client id
-
getLocale
The device locale (for example
en_US).Returns
the locale
-
getPlatform
The platform name as reported by
Display.getPlatformName()(for exampleand,ios,mac).Returns
the platform name
-