-
public final class Batch.UserBatch User module
-
-
Method Summary
Modifier and Type Method Description static StringgetInstallationID()Get the unique installation ID, generated by Batch. static StringgetLanguage(@NonNull() Context context)Read the language. static StringgetRegion(@NonNull() Context context)Read the region. static StringgetIdentifier(@NonNull() Context context)Read the custom identifier. static voidfetchAttributes(@NonNull() Context context, @Nullable() BatchAttributesFetchListener listener)Read the saved attributes. static voidfetchTagCollections(@NonNull() Context context, @Nullable() BatchTagCollectionsFetchListener listener)Read the saved tag collections. static voidclearInstallationData()Clear all tags and attributes set on an installation and their local cache returned by fetchAttributes andfetchTagCollections. -
-
Method Detail
-
getInstallationID
@Nullable() static String getInstallationID()
Get the unique installation ID, generated by Batch. Batch must be started to read it.
-
getLanguage
@Nullable() static String getLanguage(@NonNull() Context context)
Read the language.
-
getIdentifier
@Nullable() static String getIdentifier(@NonNull() Context context)
Read the custom identifier.
-
fetchAttributes
static void fetchAttributes(@NonNull() Context context, @Nullable() BatchAttributesFetchListener listener)
Read the saved attributes. Reading is asynchronous so as not to interfere with saving operations.
- Parameters:
context- Android's contextlistener- Pass a listener to be notified of the fetch result.
-
fetchTagCollections
static void fetchTagCollections(@NonNull() Context context, @Nullable() BatchTagCollectionsFetchListener listener)
Read the saved tag collections. Reading is asynchronous so as not to interfere with saving operations.
- Parameters:
context- Android's contextlistener- Pass a listener to be notified of the fetch result.
-
clearInstallationData
static void clearInstallationData()
Clear all tags and attributes set on an installation and their local cache returned by fetchAttributes andfetchTagCollections. This doesn't affect data set on profiles using Batch.Profile.
-
-
-
-