Package 

Class ModuleDataCleaner


  • 
    public class ModuleDataCleaner
    
                        

    Cleans sensitive user data from native modules that implement the {@code Cleanable} interface. This is useful e.g. when a user logs out from an app.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public 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 userinformation or content. - Retained (static) in-memory data that may contain user info orcontent.

      Note that the following types of modules do not need to be cleaned here: - Modules whoseuser data is kept in memory in non-static fields, assuming the app uses a separate instance foreach viewer context. - Modules that remove all persistent data (temp files, etc) when thecatalyst instance is destroyed. This is because logout implies that the instance is destroyed.Apps should enforce this.

    • Method Summary

      Modifier and Type Method Description
      static void cleanDataFromModules(CatalystInstance catalystInstance) Please use the cleanDataFromModules(ReactContext) instead.
      static void cleanDataFromModules(ReactContext reactContext)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait