libandroid-navigation-ui/src/main/java/com/mapbox/services/android/navigation/ui/v5/instruction/InstructionLoader.java
public void prefetchImageCache(LegStep step) {

    if (step == null || step.bannerInstructions() == null
      || step.bannerInstructions().isEmpty()) {
      return;
    }

    checkIsInitialized();

    List<BannerInstructions> bannerInstructionList = new ArrayList<>(step.bannerInstructions());
    for (BannerInstructions instructions : bannerInstructionList) {
      if (hasComponents(instructions.primary())) {
        fetchImageBaseUrls(instructions.primary());
      }
      if (hasComponents(instructions.secondary())) {
        fetchImageBaseUrls(instructions.secondary());
      }
    }
  }
/**
   * Will pre-fetch images for a given {@link LegStep}.
   * <p>
   * If loaded successfully, this will allow the images to be displayed
   * without delay in the {@link InstructionView}.
   *
   * @param step providing the image Urls
   */
Will pre-fetch images for a given  LegStep.

If loaded successfully, this will allow the images to be displayed
without delay in the  InstructionView.

@param step providing the image Urls
Will pre - fetch images for a given LegStep . If loaded successfully this will allow the images to be displayed without delay in the InstructionView . @param step providing the image Urls
public void prefetchImageCache(LegStep step) {
    if (step == null || step.bannerInstructions() == null
      || step.bannerInstructions().isEmpty()) {
      return;
    }
    checkIsInitialized();
    List<BannerInstructions> bannerInstructionList = new ArrayList<>(step.bannerInstructions());
    for (BannerInstructions instructions : bannerInstructionList) {
      if (hasComponents(instructions.primary())) {
        fetchImageBaseUrls(instructions.primary());
      }
      if (hasComponents(instructions.secondary())) {
        fetchImageBaseUrls(instructions.secondary());
      }
    }
  }
public void prefetchImageCache ( LegStep step ) { if ( step == null || step . bannerInstructions ( ) == null || step . bannerInstructions ( ) . isEmpty ( ) ) { return ; } checkIsInitialized ( ) ; List < BannerInstructions > bannerInstructionList = new ArrayList < > ( step . bannerInstructions ( ) ) ; for ( BannerInstructions instructions : bannerInstructionList ) { if ( hasComponents ( instructions . primary ( ) ) ) { fetchImageBaseUrls ( instructions . primary ( ) ) ; } if ( hasComponents ( instructions . secondary ( ) ) ) { fetchImageBaseUrls ( instructions . secondary ( ) ) ; } } }
Will pre-fetch images for a given {@link LegStep}.
Will pre - fetch images for a given { @link LegStep } .