Package 

Class DisplayReceiptModule

    • Method Summary

      Modifier and Type Method Description
      static DisplayReceiptModule provide()
      String getId() ID of the module
      int getState() Should return the state of the module (usually 0 for deactivated, 1 for activated)
      void batchDidStart() Called by Batch right after batch startNB : Same context and activity that in willStart but with the new state READY set
      void scheduleDisplayReceipt(Context context, @NonNull() InternalPushData pushData) Save the new receipt and schedule the send of display receipts using a JobServiceIf no delay or Android version is too low, we send without a job
      static synchronized void sendReceipt(Context context, boolean replay) Send up to CacheHelper.
      void wipeData(@NonNull() Context context) Delete all receipt still in cache
      • Methods inherited from class com.batch.android.module.BatchModule

        batchContextBecameAvailable, batchDidStop, batchIsFinishing, batchWillStart, batchWillStop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getState

         int getState()

        Should return the state of the module (usually 0 for deactivated, 1 for activated)

      • batchDidStart

         void batchDidStart()

        Called by Batch right after batch startNB : Same context and activity that in willStart but with the new state READY set

      • sendReceipt

         static synchronized void sendReceipt(Context context, boolean replay)

        Send up to CacheHelper.MAX_READ_RECEIPT_FROM_CACHE display receipt to the ws.

        Update send attempts and replay in cached files.Delete cached file if send is successful.

        Parameters:
        context - app context
        replay - replay = true if request is at SDK start false otherwise