Package com.batch.android.module
Class LocalCampaignsModule
- java.lang.Object
-
- com.batch.android.module.BatchModule
-
- com.batch.android.module.LocalCampaignsModule
-
public class LocalCampaignsModule extends BatchModule
Batch's Local Campaigns Messaging Module.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTAG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbatchDidStart()Called by Batch right after batch start
NB : Same context and activity that in willStart but with the new stateState.READYsetvoidbatchDidStop()Called by Batch right after batch stop
NB : No context or activity are availablejava.lang.StringgetId()ID of the moduleintgetState()Should return the state of the module (usually 0 for deactivated, 1 for activated)static LocalCampaignsModuleprovide()voidsendSignal(Signal signal)voidwipeData(android.content.Context context)-
Methods inherited from class com.batch.android.module.BatchModule
batchIsFinishing, batchWillStart, batchWillStop
-
-
-
-
Field Detail
-
TAG
public static final java.lang.String TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
provide
public static LocalCampaignsModule provide()
-
getId
public java.lang.String getId()
Description copied from class:BatchModuleID of the module- Specified by:
getIdin classBatchModule- Returns:
-
getState
public int getState()
Description copied from class:BatchModuleShould return the state of the module (usually 0 for deactivated, 1 for activated)- Specified by:
getStatein classBatchModule- Returns:
-
sendSignal
public void sendSignal(@NonNull Signal signal)
-
wipeData
public void wipeData(@NonNull android.content.Context context)
-
batchDidStart
public void batchDidStart()
Description copied from class:BatchModuleCalled by Batch right after batch start
NB : Same context and activity that in willStart but with the new stateState.READYset- Overrides:
batchDidStartin classBatchModule
-
batchDidStop
public void batchDidStop()
Description copied from class:BatchModuleCalled by Batch right after batch stop
NB : No context or activity are available- Overrides:
batchDidStopin classBatchModule
-
-