- All Known Implementing Classes:
- AsyncStorageModule, FrescoModule
- Enclosing class:
- ModuleDataCleaner
public static interface ModuleDataCleaner.Cleanable
Indicates a module may contain sensitive user data and should be cleaned on logout.
Types of data that should be cleaned:
- Persistent data (disk) that may contain user information or content.
- Retained (static) in-memory data that may contain user info or content.
Note that the following types of modules do not need to be cleaned here:
- Modules whose user data is kept in memory in non-static fields, assuming the app uses a
separate instance for each viewer context.
- Modules that remove all persistent data (temp files, etc) when the catalyst instance is
destroyed. This is because logout implies that the instance is destroyed. Apps should enforce
this.