Skip navigation links
A B C D E F G H I K L M N O P R S T U V W 

A

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
Fluent API for creating Analytics instances.
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
 

B

BasePayload - Class in com.segment.analytics.internal.model.payloads
A payload object that will be sent to the server.
BasePayload(BasePayload.Type, AnalyticsContext, Options) - Constructor for class com.segment.analytics.internal.model.payloads.BasePayload
 
BasePayload.Channel - Enum in com.segment.analytics.internal.model.payloads
 
BasePayload.Type - Enum in com.segment.analytics.internal.model.payloads
 
birthday() - Method in class com.segment.analytics.Traits
 
buffer(InputStream) - Static method in class com.segment.analytics.internal.Utils
Buffers the given InputStream.
build() - Method in class com.segment.analytics.Analytics.Builder
Create a Analytics client.
Builder(Context, String) - Constructor for class com.segment.analytics.Analytics.Builder
Start building a new Analytics instance.

C

campaign() - Method in class com.segment.analytics.AnalyticsContext
 
Campaign() - Constructor for class com.segment.analytics.AnalyticsContext.Campaign
 
category() - Method in class com.segment.analytics.internal.model.payloads.ScreenPayload
 
category() - Method in class com.segment.analytics.Properties
 
city() - Method in class com.segment.analytics.Traits.Address
 
clear() - Method in class com.segment.analytics.ValueMap
 
closeQuietly(Closeable) - Static method in class com.segment.analytics.internal.Utils
Close the given Closeable.
coerceToFloat(Object, float) - Static method in class com.segment.analytics.internal.Utils
Returns the float representation at value if it exists and is a float or can be coerced to a float.
collectDeviceId(boolean) - Method in class com.segment.analytics.Analytics.Builder
Enable or disable collection of Settings.Secure.ANDROID_ID, Build.SERIAL or the Telephony Identifier retreived via TelephonyManager as available.
com.segment.analytics - package com.segment.analytics
 
com.segment.analytics.internal - package com.segment.analytics.internal
 
com.segment.analytics.internal.model.payloads - package com.segment.analytics.internal.model.payloads
 
COMPLETED_ORDER - Static variable in class com.segment.analytics.internal.AbstractIntegration
 
connectionFactory(ConnectionFactory) - Method in class com.segment.analytics.Analytics.Builder
Specify the connection factory for customizing how connections are created.
ConnectionFactory - Class in com.segment.analytics
Abstraction to customize how connections are created.
ConnectionFactory() - Constructor for class com.segment.analytics.ConnectionFactory
 
containsKey(Object) - Method in class com.segment.analytics.ValueMap
 
containsValue(Object) - Method in class com.segment.analytics.ValueMap
 
content() - Method in class com.segment.analytics.AnalyticsContext.Campaign
 
context() - Method in class com.segment.analytics.internal.model.payloads.BasePayload
 
country() - Method in class com.segment.analytics.Traits.Address
 
createdAt() - Method in class com.segment.analytics.Traits
 
createDirectory(File) - Static method in class com.segment.analytics.internal.Utils
Ensures that a directory is created in the given location, throws an IOException otherwise.
createMap() - Static method in class com.segment.analytics.internal.Utils
 
currency() - Method in class com.segment.analytics.Properties
 
currentId() - Method in class com.segment.analytics.Traits
Returns the currentId the user is identified with.

D

debug(String, Object...) - Method in class com.segment.analytics.internal.Log
 
DEFAULT_COLLECT_DEVICE_ID - Static variable in class com.segment.analytics.internal.Utils
 
DEFAULT_FLUSH_INTERVAL - Static variable in class com.segment.analytics.internal.Utils
 
DEFAULT_FLUSH_QUEUE_SIZE - Static variable in class com.segment.analytics.internal.Utils
 
defaultOptions(Options) - Method in class com.segment.analytics.Analytics.Builder
Set some default options for all calls.
description() - Method in class com.segment.analytics.Traits
 
device() - Method in class com.segment.analytics.AnalyticsContext
 
disableBundledIntegrations() - Method in class com.segment.analytics.Analytics.Builder
Deprecated.
As of 3.0.1, this method does nothing.
discount() - Method in class com.segment.analytics.Properties
 

E

email() - Method in class com.segment.analytics.Traits
 
employees() - Method in class com.segment.analytics.Traits
 
entrySet() - Method in class com.segment.analytics.ValueMap
 
equals(Object) - Method in class com.segment.analytics.ValueMap
 
error(Throwable, String, Object...) - Method in class com.segment.analytics.internal.Log
 
event() - Method in class com.segment.analytics.internal.model.payloads.ScreenPayload
 
event() - Method in class com.segment.analytics.internal.model.payloads.TrackPayload
 

F

fax() - Method in class com.segment.analytics.Traits
 
firstName() - Method in class com.segment.analytics.Traits
 
flush() - Method in class com.segment.analytics.Analytics
Asynchronously flushes all messages in the queue to the server, and tells bundled integrations to do the same.
flush() - Method in class com.segment.analytics.internal.AbstractIntegration
 
flushCount - Variable in class com.segment.analytics.StatsSnapshot
Number of times we've flushed events to our servers.
flushEventCount - Variable in class com.segment.analytics.StatsSnapshot
Number of events we've flushed to our servers.
flushInterval(long, TimeUnit) - Method in class com.segment.analytics.Analytics.Builder
Set the interval at which the client should flush events.
flushQueueSize(int) - Method in class com.segment.analytics.Analytics.Builder
Set the queue size at which the client should flush events.

G

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
Get the AnalyticsContext used by this instance.
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
Deprecated.
This will be removed in a future release.
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
Creates a StatsSnapshot of the current stats for this instance.
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
 

H

hasFeature(Context, String) - Static method in class com.segment.analytics.internal.Utils
Returns true if the application has the given feature.
hashCode() - Method in class com.segment.analytics.ValueMap
 
hasPermission(Context, String) - Static method in class com.segment.analytics.internal.Utils
Returns true if the application has the given permission.

I

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
 

K

key() - Method in class com.segment.analytics.internal.AbstractIntegration
A key to identify this integration, matching the one in the Segment Public API.
keySet() - Method in class com.segment.analytics.ValueMap
 

L

lastName() - Method in class com.segment.analytics.Traits
 
latitude() - Method in class com.segment.analytics.AnalyticsContext.Location
 
link() - Method in class com.segment.analytics.AnalyticsContext.Referrer
 
location() - Method in class com.segment.analytics.AnalyticsContext
 
Location() - Constructor for class com.segment.analytics.AnalyticsContext.Location
 
log() - Method in enum com.segment.analytics.Analytics.LogLevel
 
Log - Class in com.segment.analytics.internal
 
logLevel(Analytics.LogLevel) - Method in class com.segment.analytics.Analytics.Builder
Set a Analytics.LogLevel for this instance.
logLevel - Variable in class com.segment.analytics.internal.Log
 
logout() - Method in class com.segment.analytics.Analytics
Deprecated.
Use Analytics.reset() instead
longitude() - Method in class com.segment.analytics.AnalyticsContext.Location
 

M

medium() - Method in class com.segment.analytics.AnalyticsContext.Campaign
 
messageId() - Method in class com.segment.analytics.internal.model.payloads.BasePayload
 

N

name() - Method in class com.segment.analytics.AnalyticsContext.Campaign
 
name() - Method in class com.segment.analytics.AnalyticsContext.Referrer
 
name() - Method in class com.segment.analytics.internal.model.payloads.ScreenPayload
 
name() - Method in class com.segment.analytics.Properties
 
name() - Method in class com.segment.analytics.Properties.Product
 
name() - Method in class com.segment.analytics.Traits
 
networkExecutor(ExecutorService) - Method in class com.segment.analytics.Analytics.Builder
Specify the executor service for making network calls in the background.
newLogger(String) - Method in class com.segment.analytics.internal.Log
 
newSet(T...) - Static method in class com.segment.analytics.internal.Utils
Creates a mutable HashSet instance containing the given elements in unspecified order
newThread(Runnable) - Method in class com.segment.analytics.internal.Utils.AnalyticsThreadFactory
 
NullableConcurrentHashMap() - Constructor for class com.segment.analytics.internal.Utils.NullableConcurrentHashMap
 
NullableConcurrentHashMap(Map<? extends K, ? extends V>) - Constructor for class com.segment.analytics.internal.Utils.NullableConcurrentHashMap
 

O

onActivityCreated(Activity, Bundle) - Method in class com.segment.analytics.internal.AbstractIntegration
 
onActivityDestroyed(Activity) - Method in class com.segment.analytics.internal.AbstractIntegration
 
onActivityPaused(Activity) - Method in class com.segment.analytics.internal.AbstractIntegration
 
onActivityResumed(Activity) - Method in class com.segment.analytics.internal.AbstractIntegration
 
onActivitySaveInstanceState(Activity, Bundle) - Method in class com.segment.analytics.internal.AbstractIntegration
 
onActivityStarted(Activity) - Method in class com.segment.analytics.internal.AbstractIntegration
 
onActivityStopped(Activity) - Method in class com.segment.analytics.internal.AbstractIntegration
 
onIntegrationReady(Analytics.BundledIntegration, Analytics.Callback) - Method in class com.segment.analytics.Analytics
Register to be notified when a bundled integration is ready.
onReady(Object) - Method in interface com.segment.analytics.Analytics.Callback
This method will be invoked once for each callback.
openConnection(String) - Method in class com.segment.analytics.ConnectionFactory
Configures defaults for connections opened with both ConnectionFactory.upload(String) and ConnectionFactory.projectSettings(String).
Options - Class in com.segment.analytics
Options let you control behaviour for a specific analytics action, including setting a custom timestamp and disabling integrations on demand.
Options() - Constructor for class com.segment.analytics.Options
 
orderId() - Method in class com.segment.analytics.Properties
 

P

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
The currency for the value set in Properties.putRevenue(double).
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.

R

readFully(InputStream) - Static method in class com.segment.analytics.internal.Utils
Reads the give InputStream into a String.
readFully(BufferedReader) - Static method in class com.segment.analytics.internal.Utils
Reads the give BufferedReader into a String.
Referrer() - Constructor for class com.segment.analytics.AnalyticsContext.Referrer
 
Referrer(Map<String, Object>) - Constructor for class com.segment.analytics.AnalyticsContext.Referrer
 
referrer() - Method in class com.segment.analytics.Properties
 
remove(Object) - Method in class com.segment.analytics.ValueMap
 
reset() - Method in class com.segment.analytics.Analytics
Resets the analytics client by clearing any stored information about the user.
reset() - Method in class com.segment.analytics.internal.AbstractIntegration
 
revenue() - Method in class com.segment.analytics.Properties
 

S

screen(String, String) - Method in class com.segment.analytics.Analytics
 
screen(String, String, Properties) - Method in class com.segment.analytics.Analytics
 
screen(String, String, Properties, Options) - Method in class com.segment.analytics.Analytics
The screen methods let your record whenever a user sees a screen of your mobile app, and attach a name, category or properties to the screen.
screen(ScreenPayload) - Method in class com.segment.analytics.internal.AbstractIntegration
 
ScreenPayload - Class in com.segment.analytics.internal.model.payloads
 
ScreenPayload(AnalyticsContext, Options, String, String, Properties) - Constructor for class com.segment.analytics.internal.model.payloads.ScreenPayload
 
setIntegration(String, boolean) - Method in class com.segment.analytics.Options
Sets whether an action will be sent to the target integration.
setIntegration(Analytics.BundledIntegration, boolean) - Method in class com.segment.analytics.Options
Sets whether an action will be sent to the target integration.
setIntegrationOptions(String, Map<String, Object>) - Method in class com.segment.analytics.Options
Attach some integration specific options for this call.
setIntegrationOptions(Analytics.BundledIntegration, Map<String, Object>) - Method in class com.segment.analytics.Options
Attach some integration specific options for this call.
setSingletonInstance(Analytics) - Static method in class com.segment.analytics.Analytics
Set the global instance returned from Analytics.with(android.content.Context).
shipping() - Method in class com.segment.analytics.Properties
 
shutdown() - Method in class com.segment.analytics.Analytics
Stops this instance from accepting further requests.
size() - Method in class com.segment.analytics.ValueMap
 
sku() - Method in class com.segment.analytics.Properties.Product
 
sku() - Method in class com.segment.analytics.Properties
 
source() - Method in class com.segment.analytics.AnalyticsContext.Campaign
 
speed() - Method in class com.segment.analytics.AnalyticsContext.Location
 
state() - Method in class com.segment.analytics.Traits.Address
 
StatsSnapshot - Class in com.segment.analytics
Represents all stats for a Analytics instance at a single point in time.
StatsSnapshot(long, long, long, long, long, Map<String, Long>) - Constructor for class com.segment.analytics.StatsSnapshot
 
street() - Method in class com.segment.analytics.Traits.Address
 

T

tag(String) - Method in class com.segment.analytics.Analytics.Builder
Set a tag for this instance.
tax() - Method in class com.segment.analytics.Properties
 
tern() - Method in class com.segment.analytics.AnalyticsContext.Campaign
 
THREAD_PREFIX - Static variable in class com.segment.analytics.internal.Utils
 
timestamp - Variable in class com.segment.analytics.StatsSnapshot
The time at which the snapshot was created.
title() - Method in class com.segment.analytics.Properties
 
title() - Method in class com.segment.analytics.Traits
 
toISO8601Date(Date) - Static method in class com.segment.analytics.internal.Utils
Returns the date as a string formatted with Utils.ISO_8601_DATE_FORMAT.
toISO8601Date(String) - Static method in class com.segment.analytics.internal.Utils
Returns the string as a date parsed with Utils.ISO_8601_DATE_FORMAT.
toJsonObject(Map<String, ?>) - Static method in class com.segment.analytics.internal.Utils
Return a copy of the contents of the given map as a JSONObject.
toJsonObject() - Method in class com.segment.analytics.ValueMap
Return a copy of the contents of this map as a JSONObject.
toString() - Method in class com.segment.analytics.internal.model.payloads.AliasPayload
 
toString() - Method in class com.segment.analytics.internal.model.payloads.GroupPayload
 
toString() - Method in class com.segment.analytics.internal.model.payloads.IdentifyPayload
 
toString() - Method in class com.segment.analytics.internal.model.payloads.ScreenPayload
 
toString() - Method in class com.segment.analytics.internal.model.payloads.TrackPayload
 
toString() - Method in class com.segment.analytics.StatsSnapshot
 
toString() - Method in class com.segment.analytics.ValueMap
 
toStringMap() - Method in class com.segment.analytics.ValueMap
Return a copy of the contents of this map as a Map<String, String>.
total() - Method in class com.segment.analytics.Properties
 
track(String) - Method in class com.segment.analytics.Analytics
The track method is how you record any actions your users perform.
track(String, Properties) - Method in class com.segment.analytics.Analytics
The track method is how you record any actions your users perform.
track(String, Properties, Options) - Method in class com.segment.analytics.Analytics
The track method is how you record any actions your users perform.
track(TrackPayload) - Method in class com.segment.analytics.internal.AbstractIntegration
 
TrackPayload - Class in com.segment.analytics.internal.model.payloads
 
TrackPayload(AnalyticsContext, Options, String, Properties) - Constructor for class com.segment.analytics.internal.model.payloads.TrackPayload
 
traits() - Method in class com.segment.analytics.AnalyticsContext
Note: Not for public use.
traits() - Method in class com.segment.analytics.internal.model.payloads.GroupPayload
 
traits() - Method in class com.segment.analytics.internal.model.payloads.IdentifyPayload
 
Traits - Class in com.segment.analytics
A class representing information about a user.
Traits() - Constructor for class com.segment.analytics.Traits
 
Traits(int) - Constructor for class com.segment.analytics.Traits
 
Traits.Address - Class in com.segment.analytics
Represents information about the address of a user or group.
transform(Map<String, T>, Map<String, String>) - Static method in class com.segment.analytics.internal.Utils
Transforms the given map by replacing the keys mapped by mapper.
type() - Method in class com.segment.analytics.AnalyticsContext.Referrer
 
type() - Method in class com.segment.analytics.internal.model.payloads.BasePayload
 

U

unmodifiableCopy() - Method in class com.segment.analytics.AnalyticsContext
Returns an unmodifiable shallow copy of the values in this map.
unmodifiableCopy() - Method in class com.segment.analytics.Traits
 
upload(String) - Method in class com.segment.analytics.ConnectionFactory
Return a HttpURLConnection that writes batched payloads to https://api.segment.io/v1/import.
url() - Method in class com.segment.analytics.AnalyticsContext.Referrer
 
url() - Method in class com.segment.analytics.Properties
 
USER_ID_KEY - Static variable in class com.segment.analytics.internal.model.payloads.BasePayload
The user ID is an identifier that unique identifies the user in your database.
userId() - Method in class com.segment.analytics.internal.model.payloads.BasePayload
 
userId() - Method in class com.segment.analytics.Traits
 
username() - Method in class com.segment.analytics.Traits
 
Utils - Class in com.segment.analytics.internal
 
Utils.AnalyticsExecutorService - Class in com.segment.analytics.internal
A ThreadPoolExecutor implementation by Analytics instances.
Utils.AnalyticsThreadFactory - Class in com.segment.analytics.internal
 
Utils.NullableConcurrentHashMap<K,V> - Class in com.segment.analytics.internal
A ConcurrentHashMap that rejects null keys and values instead of failing.

V

value() - Method in class com.segment.analytics.Properties
 
ValueMap - Class in com.segment.analytics
A class that wraps an existing Map to expose value type functionality.
ValueMap() - Constructor for class com.segment.analytics.ValueMap
 
ValueMap(int) - Constructor for class com.segment.analytics.ValueMap
 
ValueMap(Map<String, Object>) - Constructor for class com.segment.analytics.ValueMap
 
valueOf(String) - Static method in enum com.segment.analytics.Analytics.BundledIntegration
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.segment.analytics.Analytics.LogLevel
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.segment.analytics.internal.model.payloads.BasePayload.Channel
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.segment.analytics.internal.model.payloads.BasePayload.Type
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.segment.analytics.Analytics.BundledIntegration
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.segment.analytics.Analytics.LogLevel
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.segment.analytics.internal.model.payloads.BasePayload.Channel
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.segment.analytics.internal.model.payloads.BasePayload.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Method in class com.segment.analytics.ValueMap
 
verbose(String, Object...) - Method in class com.segment.analytics.internal.Log
 
VIEWED_EVENT_FORMAT - Static variable in class com.segment.analytics.internal.AbstractIntegration
 
VIEWED_PRODUCT - Static variable in class com.segment.analytics.internal.AbstractIntegration
 
VIEWED_PRODUCT_CATEGORY - Static variable in class com.segment.analytics.internal.AbstractIntegration
 

W

website() - Method in class com.segment.analytics.Traits
 
with(Context) - Static method in class com.segment.analytics.Analytics
Return a reference to the global default Analytics instance.
with(Analytics.LogLevel) - Static method in class com.segment.analytics.internal.Log
 
A B C D E F G H I K L M N O P R S T U V W 
Skip navigation links