Package 

Class LocalCampaignsModule

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static String TAG
    • Method Summary

      Modifier and Type Method Description
      static LocalCampaignsModule provide()
      String getId() ID of the module
      int getState() Should return the state of the module (usually 0 for deactivated, 1 for activated)
      void sendSignal(@NonNull() Signal signal) Start sending a signalIf another one is already processing, signal is added to queue.
      void onLocalCampaignsWebserviceFinished() Release the signal queue when the local campaigns webservice is finished
      void wipeData(@NonNull() Context context) Delete all campaigns from the manager
      void registerBroadcastReceiverIfNeeded(@NonNull() Context context) Register the broadcast receiver for "new_session" intent if needed.
      void batchContextBecameAvailable(@NonNull() Context applicationContext) Called by Batch as soon as a context is available in the runtimeManagerFor convenience, the application context is available as a parameter.LocalBroadcastManager is also up.
      void batchDidStop() Called by Batch right after batch stopNB : No context or activity are available
      • Methods inherited from class com.batch.android.module.BatchModule

        batchDidStart, 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)

      • sendSignal

         void sendSignal(@NonNull() Signal signal)

        Start sending a signalIf another one is already processing, signal is added to queue.

        Parameters:
        signal - signal to send
      • wipeData

         void wipeData(@NonNull() Context context)

        Delete all campaigns from the manager

        Parameters:
        context - context
      • registerBroadcastReceiverIfNeeded

         void registerBroadcastReceiverIfNeeded(@NonNull() Context context)

        Register the broadcast receiver for "new_session" intent if needed.

        Parameters:
        context - used to instantiate the LocalBroadcastManager singleton if its not.
      • batchContextBecameAvailable

         void batchContextBecameAvailable(@NonNull() Context applicationContext)

        Called by Batch as soon as a context is available in the runtimeManagerFor convenience, the application context is available as a parameter.LocalBroadcastManager is also up.

      • batchDidStop

         void batchDidStop()

        Called by Batch right after batch stopNB : No context or activity are available