Java 类com.facebook.react.bridge.OnBatchCompleteListener 实例源码

项目:RNLearn_Project1    文件:NativeModuleRegistryBuilder.java   
public NativeModuleRegistry build() {
  ArrayList<ModuleHolder> batchCompleteListenerModules = new ArrayList<>();
  for (Map.Entry<Class<? extends NativeModule>, ModuleHolder> entry : mModules.entrySet()) {
    if (OnBatchCompleteListener.class.isAssignableFrom(entry.getKey())) {
      batchCompleteListenerModules.add(entry.getValue());
    }
  }

  return new NativeModuleRegistry(
    mReactApplicationContext,
    mModules,
    batchCompleteListenerModules);
}
项目:RNLearn_Project1    文件:NativeModuleRegistry.java   
public void onBatchComplete() {
  for (ModuleHolder moduleHolder : mBatchCompleteListenerModules) {
    if (moduleHolder.isInitialized()) {
      ((OnBatchCompleteListener) moduleHolder.getModule()).onBatchComplete();
    }
  }
}
项目:RNLearn_Project1    文件:NativeModuleRegistryBuilder.java   
public NativeModuleRegistry build() {
  ArrayList<ModuleHolder> batchCompleteListenerModules = new ArrayList<>();
  for (Map.Entry<Class<? extends NativeModule>, ModuleHolder> entry : mModules.entrySet()) {
    if (OnBatchCompleteListener.class.isAssignableFrom(entry.getKey())) {
      batchCompleteListenerModules.add(entry.getValue());
    }
  }

  return new NativeModuleRegistry(
    mReactApplicationContext,
    mModules,
    batchCompleteListenerModules);
}
项目:RNLearn_Project1    文件:NativeModuleRegistry.java   
public void onBatchComplete() {
  for (ModuleHolder moduleHolder : mBatchCompleteListenerModules) {
    if (moduleHolder.isInitialized()) {
      ((OnBatchCompleteListener) moduleHolder.getModule()).onBatchComplete();
    }
  }
}