Annotation Type CachePolicy


  • @Retention(SOURCE)
    public @interface CachePolicy
    Constants to define policy for downloading image and videos on the moment of loading ad request. Assets will be saved in memory and used later
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static int ALL
      All assets will be loaded during ad request.
      static int IMAGE
      Only images will be loaded during ad request.
      static int NONE
      Assets will not be downloaded during ad request.
      static int VIDEO
      Only video will be downloaded during ad request.
    • Field Detail

      • ALL

        static final int ALL
        All assets will be loaded during ad request. Default in most ad formats
      • IMAGE

        static final int IMAGE
        Only images will be loaded during ad request. Video ad elements will use streaming api
      • VIDEO

        static final int VIDEO
        Only video will be downloaded during ad request. Images will be downloaded when banner shows
      • NONE

        static final int NONE
        Assets will not be downloaded during ad request. This option decreases time of ad loading, but ads will download assets right before showing, which can cause delays in showing some ad elements