Annotation Interface 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
    Field
    Description
    static final int
    All assets will be loaded during ad request.
    static final int
    Only images will be loaded during ad request.
    static final int
    Assets will not be downloaded during ad request.
    static final int
    Only video will be downloaded during ad request.
  • Field Details

    • ALL

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

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

      static final int VIDEO
      Only video will be downloaded during ad request. Images will be downloaded when banner shows
      See Also:
    • 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
      See Also: