Class UserModule


  • public final class UserModule
    extends BatchModule
    Batch User module
    • Method Detail

      • getId

        public java.lang.String getId()
        Description copied from class: BatchModule
        ID of the module
        Specified by:
        getId in class BatchModule
        Returns:
      • getState

        public int getState()
        Description copied from class: BatchModule
        Should return the state of the module (usually 0 for deactivated, 1 for activated)
        Specified by:
        getState in class BatchModule
        Returns:
      • batchDidStart

        public void batchDidStart()
        Description copied from class: BatchModule
        Called by Batch right after batch start
        NB : Same context and activity that in willStart but with the new state State.READY set
        Overrides:
        batchDidStart in class BatchModule
      • startSendWS

        public void startSendWS​(long msDelay)
      • startCheckWS

        public void startCheckWS​(long msDelay)
      • storeTransactionID

        public void storeTransactionID​(java.lang.String transactionID,
                                       long version)
      • bumpVersion

        public void bumpVersion​(long serverVersion)
      • trackPublicEvent

        public void trackPublicEvent​(java.lang.String event,
                                     java.lang.String label,
                                     JSONObject data)
        Track a public event
        Parameters:
        event - Event name
        label - Event label
        data - Event data, expected to already be converted from BatchEventData.
      • _trackEvent

        protected boolean _trackEvent​(java.lang.String name,
                                      JSONObject params)
      • trackLocation

        public void trackLocation​(android.location.Location location)
      • trackTransaction

        public void trackTransaction​(double amount,
                                     JSONObject data)
      • submitOnApplyQueue

        public static void submitOnApplyQueue​(long msDelay,
                                              java.lang.Runnable r)
      • addUserPendingOperations

        public static void addUserPendingOperations​(java.util.List<UserOperation> operations)
        Add pending operations when BatchUserDataEditor.save() is called before the SDK is started
        Parameters:
        operations -
      • printDebugInfo

        public static void printDebugInfo()
      • wipeData

        public static void wipeData​(android.content.Context context)
      • userOptedIn

        public static void userOptedIn​(android.content.Context context)