Package com.inmobi.signals.anonymisation
Object AnonDecisionStore
-
- All Implemented Interfaces:
public class AnonDecisionStorePersists the anonymisation decision across process restarts.
Written on every save so the next cold start can restore gate state before the first network response arrives, preventing a window where PII signals would leak.
-
-
Field Summary
Fields Modifier and Type Field Description public final static AnonDecisionStoreINSTANCE
-
Method Summary
Modifier and Type Method Description final AnonResponseload(Context context)Returns the last persisted decision, or null if none has been saved yet. final Unitsave(Context context, AnonResponse response)Persists response so it survives process death. final Unitclear(Context context)Removes the persisted decision; used when the SDK account changes. -
-
Method Detail
-
load
final AnonResponse load(Context context)
Returns the last persisted decision, or null if none has been saved yet.
-
save
final Unit save(Context context, AnonResponse response)
Persists response so it survives process death.
-
-
-
-