public static TorchFactory with ( DatabaseEngine engine ) { Validate . isNull ( factoryInstance , "Call TorchService#forceUnload if you want to reload TorchFactory!" ) ; factoryInstance = new TorchFactoryImpl ( engine ) ; return factoryInstance ; }
Loads the TorchFactory with passed context . In order to get all async callbacks delivered on UI Thread you have to call this on UI Thread