- AbstractIntegration<T> - Class in com.segment.analytics.internal
-
A base class for all bundled integrations.
- AbstractIntegration() - Constructor for class com.segment.analytics.internal.AbstractIntegration
-
- ADDED_PRODUCT - Static variable in class com.segment.analytics.internal.AbstractIntegration
-
- address() - Method in class com.segment.analytics.Traits
-
- Address() - Constructor for class com.segment.analytics.Traits.Address
-
- Address(Map<String, Object>) - Constructor for class com.segment.analytics.Traits.Address
-
- age() - Method in class com.segment.analytics.Traits
-
- alias(String) - Method in class com.segment.analytics.Analytics
-
The alias method is used to merge two user identities, effectively connecting two sets of user
data as one.
- alias(String, Options) - Method in class com.segment.analytics.Analytics
-
The alias method is used to merge two user identities, effectively connecting two sets of user
data as one.
- alias(AliasPayload) - Method in class com.segment.analytics.internal.AbstractIntegration
-
- AliasPayload - Class in com.segment.analytics.internal.model.payloads
-
- AliasPayload(AnalyticsContext, Options, String) - Constructor for class com.segment.analytics.internal.model.payloads.AliasPayload
-
- ALL_INTEGRATIONS_KEY - Static variable in class com.segment.analytics.Options
-
A special key, whose value which is respected for all integrations, a "default" value, unless
explicitly overridden.
- Analytics - Class in com.segment.analytics
-
The entry point into the Segment for Android SDK.
- Analytics.Builder - Class in com.segment.analytics
-
- Analytics.BundledIntegration - Enum in com.segment.analytics
-
- Analytics.Callback - Interface in com.segment.analytics
-
A callback interface that is invoked when the Analytics client initializes bundled
integrations.
- Analytics.LogLevel - Enum in com.segment.analytics
-
Controls the level of logging.
- AnalyticsContext - Class in com.segment.analytics
-
Context is a dictionary of free-form information about the state of the device.
- AnalyticsContext.Campaign - Class in com.segment.analytics
-
Information about the campaign that resulted in the API call, containing name, source,
medium, term and content.
- AnalyticsContext.Device - Class in com.segment.analytics
-
Information about the device.
- AnalyticsContext.Location - Class in com.segment.analytics
-
Information about the location of the device.
- AnalyticsContext.Referrer - Class in com.segment.analytics
-
Information about the referrer that resulted in the API call.
- AnalyticsExecutorService() - Constructor for class com.segment.analytics.internal.Utils.AnalyticsExecutorService
-
- AnalyticsThreadFactory() - Constructor for class com.segment.analytics.internal.Utils.AnalyticsThreadFactory
-
- anonymousId() - Method in class com.segment.analytics.internal.model.payloads.BasePayload
-
- anonymousId() - Method in class com.segment.analytics.Traits
-
- avatar() - Method in class com.segment.analytics.Traits
-
- gender() - Method in class com.segment.analytics.Traits
-
- get(Object) - Method in class com.segment.analytics.ValueMap
-
- getAnalyticsContext() - Method in class com.segment.analytics.Analytics
-
- getApplication() - Method in class com.segment.analytics.Analytics
-
Return the Application
used to create this instance.
- getBoolean(String, boolean) - Method in class com.segment.analytics.ValueMap
-
Returns the value mapped by key
if it exists and is a boolean or can be coerced to a
boolean.
- getChar(String, char) - Method in class com.segment.analytics.ValueMap
-
Returns the value mapped by key
if it exists and is a char or can be coerced to a
char.
- getDeviceId(Context) - Static method in class com.segment.analytics.internal.Utils
-
Creates a unique device id.
- getDouble(String, double) - Method in class com.segment.analytics.ValueMap
-
Returns the value mapped by key
if it exists and is a double or can be coerced to a
double.
- getEnum(Class<T>, String) - Method in class com.segment.analytics.ValueMap
-
Returns the value mapped by key
if it exists and is a enum or can be coerced to an
enum.
- getFloat(String, float) - Method in class com.segment.analytics.ValueMap
-
Returns the value mapped by key
if it exists and is a float or can be coerced to a
float.
- getInt(String, int) - Method in class com.segment.analytics.ValueMap
-
Returns the value mapped by key
if it exists and is a integer or can be coerced to a
integer.
- getList(Object, Class<T>) - Method in class com.segment.analytics.ValueMap
-
Returns the value mapped by key
if it exists and is a List of T
.
- getLogger() - Method in class com.segment.analytics.Analytics
-
Return the
Log
instance used by this client.
- getLogLevel() - Method in class com.segment.analytics.Analytics
-
- getLong(String, long) - Method in class com.segment.analytics.ValueMap
-
Returns the value mapped by key
if it exists and is a long or can be coerced to a
long.
- getResourceString(Context, String) - Static method in class com.segment.analytics.internal.Utils
-
Get the string resource for the given key.
- getSegmentSharedPreferences(Context) - Static method in class com.segment.analytics.internal.Utils
-
Returns a shared preferences for storing any library preferences.
- getSnapshot() - Method in class com.segment.analytics.Analytics
-
- getString(String) - Method in class com.segment.analytics.ValueMap
-
Returns the value mapped by key
if it exists and is a string or can be coerced to a
string.
- getSystemService(Context, String) - Static method in class com.segment.analytics.internal.Utils
-
Returns the system service for the given string.
- getUnderlyingInstance() - Method in class com.segment.analytics.internal.AbstractIntegration
-
The underlying instance for this provider - used for integration specific actions.
- getValueMap(Object) - Method in class com.segment.analytics.ValueMap
-
Returns the value mapped by
key
if it exists and is a
ValueMap
.
- getValueMap(String, Class<T>) - Method in class com.segment.analytics.ValueMap
-
Returns the value mapped by key
if it exists and if it can be coerced to the given
type.
- group(String) - Method in class com.segment.analytics.Analytics
-
The group method lets you associate a user with a group.
- group(String, Traits, Options) - Method in class com.segment.analytics.Analytics
-
The group method lets you associate a user with a group.
- group(GroupPayload) - Method in class com.segment.analytics.internal.AbstractIntegration
-
- groupId() - Method in class com.segment.analytics.internal.model.payloads.GroupPayload
-
- GroupPayload - Class in com.segment.analytics.internal.model.payloads
-
- GroupPayload(AnalyticsContext, Options, String, Traits) - Constructor for class com.segment.analytics.internal.model.payloads.GroupPayload
-
- id() - Method in class com.segment.analytics.AnalyticsContext.Referrer
-
- id() - Method in class com.segment.analytics.Properties.Product
-
- identify(String) - Method in class com.segment.analytics.Analytics
-
Identify lets you tie one of your users and their actions to a recognizable userId
.
- identify(Traits) - Method in class com.segment.analytics.Analytics
-
Identify lets you tie one of your users and their actions to a recognizable userId
.
- identify(String, Traits, Options) - Method in class com.segment.analytics.Analytics
-
Identify lets you tie one of your users and their actions to a recognizable userId
.
- identify(IdentifyPayload) - Method in class com.segment.analytics.internal.AbstractIntegration
-
- IdentifyPayload - Class in com.segment.analytics.internal.model.payloads
-
- IdentifyPayload(AnalyticsContext, Options, Traits) - Constructor for class com.segment.analytics.internal.model.payloads.IdentifyPayload
-
- industry() - Method in class com.segment.analytics.Traits
-
- info(String, Object...) - Method in class com.segment.analytics.internal.Log
-
- initialize(Analytics, ValueMap) - Method in class com.segment.analytics.internal.AbstractIntegration
-
Initialize the integration.
- integrationOperationAverageDuration - Variable in class com.segment.analytics.StatsSnapshot
-
Average time to run operations on all bundled integrations, including lifecycle events and
flushes.
- integrationOperationCount - Variable in class com.segment.analytics.StatsSnapshot
-
Number of operations sent to all bundled integrations, including lifecycle events and flushes.
- integrationOperationDuration - Variable in class com.segment.analytics.StatsSnapshot
-
Total time to run operations on all bundled integrations, including lifecycle events and
flushes.
- integrationOperationDurationByIntegration - Variable in class com.segment.analytics.StatsSnapshot
-
Total time to run operations, including lifecycle events and flushes, by integration.
- integrations() - Method in class com.segment.analytics.internal.model.payloads.BasePayload
-
- integrations() - Method in class com.segment.analytics.Options
-
Returns a copy of settings for integrations.
- isConnected(Context) - Static method in class com.segment.analytics.internal.Utils
-
Returns true
if the phone is connected to a network, or if we don't have the enough
permissions.
- isEmpty() - Method in class com.segment.analytics.ValueMap
-
- isNullOrEmpty(CharSequence) - Static method in class com.segment.analytics.internal.Utils
-
Returns true if the string is null, or empty (once trimmed).
- isNullOrEmpty(Collection) - Static method in class com.segment.analytics.internal.Utils
-
Returns true if the collection or has a size 0.
- isNullOrEmpty(Map) - Static method in class com.segment.analytics.internal.Utils
-
Returns true if the map is null or empty, false otherwise.
- isOnClassPath(String) - Static method in class com.segment.analytics.internal.Utils
-
Return true
if a class with the given name is found.
- isRepeatCustomer() - Method in class com.segment.analytics.Properties
-
- path() - Method in class com.segment.analytics.Properties
-
- phone() - Method in class com.segment.analytics.Traits
-
- postalCode() - Method in class com.segment.analytics.Traits.Address
-
- previousId() - Method in class com.segment.analytics.internal.model.payloads.AliasPayload
-
- price() - Method in class com.segment.analytics.Properties
-
- price() - Method in class com.segment.analytics.Properties.Product
-
- Product(String, String, double) - Constructor for class com.segment.analytics.Properties.Product
-
Create an e-commerce product with the given id, sku and price (in dollars).
- productId() - Method in class com.segment.analytics.Properties
-
- products(Properties.Product...) - Method in class com.segment.analytics.Properties
-
- projectSettings(String) - Method in class com.segment.analytics.ConnectionFactory
-
Return a HttpURLConnection
that reads JSON formatted project settings.
- properties() - Method in class com.segment.analytics.internal.model.payloads.ScreenPayload
-
- properties() - Method in class com.segment.analytics.internal.model.payloads.TrackPayload
-
- Properties - Class in com.segment.analytics
-
Properties are a dictionary of free-form information to attach to specific events.
- Properties() - Constructor for class com.segment.analytics.Properties
-
- Properties(int) - Constructor for class com.segment.analytics.Properties
-
- Properties.Product - Class in com.segment.analytics
-
A representation of an e-commerce product.
- put(K, V) - Method in class com.segment.analytics.internal.Utils.NullableConcurrentHashMap
-
- put(String, Object) - Method in class com.segment.analytics.ValueMap
-
- putAddress(Traits.Address) - Method in class com.segment.analytics.Traits
-
Set an address for the user or group.
- putAge(int) - Method in class com.segment.analytics.Traits
-
Set the age of a user.
- putAll(Map<? extends String, ?>) - Method in class com.segment.analytics.ValueMap
-
- putAvatar(String) - Method in class com.segment.analytics.Traits
-
Set a URL to an avatar image for the user or group.
- putBirthday(Date) - Method in class com.segment.analytics.Traits
-
Set the user's birthday.
- putCampaign(AnalyticsContext.Campaign) - Method in class com.segment.analytics.AnalyticsContext
-
Set information about the campaign that resulted in the API call.
- putCategory(String) - Method in class com.segment.analytics.Properties
-
Set a category for this action.
- putCity(String) - Method in class com.segment.analytics.Traits.Address
-
- putContent(String) - Method in class com.segment.analytics.AnalyticsContext.Campaign
-
Set the UTM campaign content.
- putCountry(String) - Method in class com.segment.analytics.Traits.Address
-
- putCoupon(String) - Method in class com.segment.analytics.Properties
-
Set a coupon name for an order associated with an event.
- putCreatedAt(String) - Method in class com.segment.analytics.Traits
-
Set the date the user’s or group’s account was first created.
- putCurrency(String) - Method in class com.segment.analytics.Properties
-
- putDescription(String) - Method in class com.segment.analytics.Traits
-
Set a description of the user or group, like a personal bio.
- putDeviceToken(String) - Method in class com.segment.analytics.AnalyticsContext.Device
-
Set a device token.
- putDeviceToken(String) - Method in class com.segment.analytics.AnalyticsContext
-
Set a device token.
- putDiscount(double) - Method in class com.segment.analytics.Properties
-
Set the discount amount (in dollars) for an order associated with an event.
- putEmail(String) - Method in class com.segment.analytics.Traits
-
Set the email address of a user or group.
- putEmployees(long) - Method in class com.segment.analytics.Traits
-
Set the number of employees of a group, typically used for companies.
- putFax(String) - Method in class com.segment.analytics.Traits
-
Set the fax number of a user or group.
- putFirstName(String) - Method in class com.segment.analytics.Traits
-
Set the first name of a user.
- putGender(String) - Method in class com.segment.analytics.Traits
-
Set the gender of a user.
- putId(String) - Method in class com.segment.analytics.AnalyticsContext.Referrer
-
Set the referrer ID.
- putIndustry(String) - Method in class com.segment.analytics.Traits
-
Set the industry the user works in, or a group is part of.
- putLastName(String) - Method in class com.segment.analytics.Traits
-
Set the last name of a user.
- putLatitude(double) - Method in class com.segment.analytics.AnalyticsContext.Location
-
Set the latitude for the location of the device.
- putLink(String) - Method in class com.segment.analytics.AnalyticsContext.Referrer
-
Set the referrer link.
- putLocation(AnalyticsContext.Location) - Method in class com.segment.analytics.AnalyticsContext
-
Set location information about the device.
- putLongitude(double) - Method in class com.segment.analytics.AnalyticsContext.Location
-
Set the longitude for the location of the device.
- putMedium(String) - Method in class com.segment.analytics.AnalyticsContext.Campaign
-
Set the UTM campaign medium.
- putName(String) - Method in class com.segment.analytics.AnalyticsContext.Campaign
-
Set the UTM campaign name.
- putName(String) - Method in class com.segment.analytics.AnalyticsContext.Referrer
-
Set the referrer name.
- putName(String) - Method in class com.segment.analytics.Properties.Product
-
Set an optional name for this product.
- putName(String) - Method in class com.segment.analytics.Properties
-
Set the name of the product associated with an event.
- putName(String) - Method in class com.segment.analytics.Traits
-
Set the name of a user or group.
- putOrderId(String) - Method in class com.segment.analytics.Properties
-
Set the order ID associated with an event.
- putPath(String) - Method in class com.segment.analytics.Properties
-
Set a path (usually the path of the URL) for the screen.
- putPhone(String) - Method in class com.segment.analytics.Traits
-
Set the phone number of a user or group.
- putPostalCode(String) - Method in class com.segment.analytics.Traits.Address
-
- putPrice(double) - Method in class com.segment.analytics.Properties
-
Set a price (in dollars) for the product associated with an event.
- putProductId(String) - Method in class com.segment.analytics.Properties
-
Set an ID for the product associated with an event.
- putProducts(Properties.Product...) - Method in class com.segment.analytics.Properties
-
Set the individual products for an order associated with an event.
- putReferrer(AnalyticsContext.Referrer) - Method in class com.segment.analytics.AnalyticsContext
-
Set the referrer for this session.
- putReferrer(String) - Method in class com.segment.analytics.Properties
-
Set the referrer that led the user to the screen.
- putRepeatCustomer(boolean) - Method in class com.segment.analytics.Properties
-
Set whether an order associated with an event is from a repeating customer.
- putRevenue(double) - Method in class com.segment.analytics.Properties
-
Set the amount of revenue an event resulted in.
- putShipping(double) - Method in class com.segment.analytics.Properties
-
Set the shipping amount (in dollars) for an order associated with an event.
- putSku(String) - Method in class com.segment.analytics.Properties
-
Set a sku for the product associated with an event.
- putSource(String) - Method in class com.segment.analytics.AnalyticsContext.Campaign
-
Set the UTM campaign source.
- putSpeed(double) - Method in class com.segment.analytics.AnalyticsContext.Location
-
Set the speed of the device.
- putState(String) - Method in class com.segment.analytics.Traits.Address
-
- putStreet(String) - Method in class com.segment.analytics.Traits.Address
-
- putSubtotal(double) - Method in class com.segment.analytics.Properties
-
Set the subtotal (in dollars) for an order associated with an event (excluding tax and
shipping).
- putSubtotal() - Method in class com.segment.analytics.Properties
-
- putTax(double) - Method in class com.segment.analytics.Properties
-
Set the tax amount (in dollars) for an order associated with an event.
- putTerm(String) - Method in class com.segment.analytics.AnalyticsContext.Campaign
-
Set the UTM campaign term.
- putTerm(String) - Method in class com.segment.analytics.AnalyticsContext.Referrer
-
Set the referrer url.
- putTitle(String) - Method in class com.segment.analytics.Properties
-
Set the title of the screen.
- putTitle(String) - Method in class com.segment.analytics.Traits
-
Set the title of a user, usually related to their position at a specific company, for example
"VP of Engineering"
- putTotal(double) - Method in class com.segment.analytics.Properties
-
Set the total amount (in dollars) for an order associated with an event.
- putType(String) - Method in class com.segment.analytics.AnalyticsContext.Referrer
-
Set the referrer type.
- putUrl(String) - Method in class com.segment.analytics.Properties
-
Set a url for the screen.
- putUsername(String) - Method in class com.segment.analytics.Traits
-
Set the user’s username.
- putValue(String, Object) - Method in class com.segment.analytics.AnalyticsContext.Campaign
-
- putValue(String, Object) - Method in class com.segment.analytics.AnalyticsContext.Device
-
- putValue(String, Object) - Method in class com.segment.analytics.AnalyticsContext.Location
-
- putValue(String, Object) - Method in class com.segment.analytics.AnalyticsContext
-
- putValue(String, Object) - Method in class com.segment.analytics.AnalyticsContext.Referrer
-
- putValue(String, Object) - Method in class com.segment.analytics.internal.model.payloads.BasePayload
-
- putValue(String, Object) - Method in class com.segment.analytics.Properties.Product
-
- putValue(String, Object) - Method in class com.segment.analytics.Properties
-
- putValue(double) - Method in class com.segment.analytics.Properties
-
Set an abstract value to associate with an event.
- putValue(String, Object) - Method in class com.segment.analytics.Traits.Address
-
- putValue(String, Object) - Method in class com.segment.analytics.Traits
-
- putValue(String, Object) - Method in class com.segment.analytics.ValueMap
-
Helper method to be able to chain put methods.
- putWebsite(String) - Method in class com.segment.analytics.Traits
-
Set the website of a user or group.