Class DefaultRecoveryStrategyFactory

java.lang.Object
com.facebook.soloader.recovery.DefaultRecoveryStrategyFactory
All Implemented Interfaces:
RecoveryStrategyFactory

public class DefaultRecoveryStrategyFactory extends Object implements RecoveryStrategyFactory
  • Constructor Details

    • DefaultRecoveryStrategyFactory

      public DefaultRecoveryStrategyFactory(android.content.Context context, int recoveryFlags)
  • Method Details

    • get

      public RecoveryStrategy get()
      Specified by:
      get in interface RecoveryStrategyFactory
      Returns:
      an instance of RecoveryStrategy that will be used to recover from failures to load a native library. The recover method of the returned object might be called multiple times until false is returned or until a successfull retry of the load is performed. All calls are guaranteed to hapen sequentially, within the context of a single library load. This contract allows the returned strategy object to try more invasive and expensive recovery mechanisms as long as cheaper options are not effective.