-
public class OptOutModule extends BatchModule
Batch's Opt Out Module.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringTAGpublic final static StringINTENT_OPTED_OUTpublic final static StringINTENT_OPTED_INpublic final static StringINTENT_OPTED_OUT_WIPE_DATA_EXTRAprivate BooleanisOptedOut
-
Constructor Summary
Constructors Constructor Description OptOutModule()
-
Method Summary
Modifier and Type Method Description BooleanisOptedOut()booleanisOptedOutSync(Context context)voidtrackOptinEventIfNeeded(@NonNull() Context context, @NonNull() AdvertisingID advertisingID)voidoptIn(Context context)Promise<Void>optOut(Context context, AdvertisingID advertisingID, boolean wipeData, BatchOptOutResultListener listener)voidwipeData(Context context)StringgetId()ID of the module intgetState()Should return the state of the module (usually 0 for deactivated, 1 for activated) -
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
-
isOptedOut
Boolean isOptedOut()
-
isOptedOutSync
boolean isOptedOutSync(Context context)
-
trackOptinEventIfNeeded
void trackOptinEventIfNeeded(@NonNull() Context context, @NonNull() AdvertisingID advertisingID)
-
optOut
Promise<Void> optOut(Context context, AdvertisingID advertisingID, boolean wipeData, BatchOptOutResultListener listener)
-
getState
int getState()
Should return the state of the module (usually 0 for deactivated, 1 for activated)
-
-
-
-