-
public final class ProfileModule extends BatchModule
Batch Profile module
-
-
Method Summary
Modifier and Type Method Description static ProfileModuleprovide()DI access method StringgetId()ID of the module intgetState()Should return the state of the module (usually 0 for deactivated, 1 for activated) voididentify(@Nullable() String identifier)Internal implementation of the identify method voidhandleProfileDataChanged(@NonNull() ProfileUpdateOperation data)Handle profile data changed voidonProjectChanged(@Nullable() String oldProjectKey, @NonNull() String newProjectKey)Method called when we the project key has changed. voidtrackPublicEvent(@NonNull() String event, @Nullable() BatchEventAttributes eventAttributes)Track a public event -
Methods inherited from class com.batch.android.module.BatchModule
batchContextBecameAvailable, batchDidStart, batchDidStop, batchIsFinishing, batchWillStart, batchWillStop -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
provide
static ProfileModule provide()
DI access method
-
getState
int getState()
Should return the state of the module (usually 0 for deactivated, 1 for activated)
-
identify
void identify(@Nullable() String identifier)
Internal implementation of the identify method
- Parameters:
identifier- The custom user identifier
-
handleProfileDataChanged
void handleProfileDataChanged(@NonNull() ProfileUpdateOperation data)
Handle profile data changed
- Parameters:
data- The profile data model to handle
-
onProjectChanged
void onProjectChanged(@Nullable() String oldProjectKey, @NonNull() String newProjectKey)
Method called when we the project key has changed.
- Parameters:
oldProjectKey- The old project key bound to the AppnewProjectKey- The new project key bound to the App
-
trackPublicEvent
void trackPublicEvent(@NonNull() String event, @Nullable() BatchEventAttributes eventAttributes)
Track a public event
- Parameters:
event- Event nameeventAttributes- Event attributes
-
-
-
-