Interface IAd

  • All Implemented Interfaces:

    
    public interface IAd
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract int getAdChoicesPlacement() Retrieve current position for AdChoices icon
      abstract int getCachePolicy() Retrieve current cachePolicy set previously
      abstract void handleData(@NonNull() String data) Loads data for s2s partners
      abstract void load() Start loading ads.
      abstract void loadFromBid(@NonNull() String bidId) Start loading ad with the bidding ID
      abstract void registerView(@NonNull() View view) Registration of the Advertising view.
      abstract void registerView(@NonNull() View view, @Nullable() List<View> clickableViews) Registration of the Advertising view.
      abstract void setAdChoicesPlacement(int adChoicesPlacement) Sets the place for AdChoices icon, by default used top-right position
      abstract void setCachePolicy(int cachePolicy) By default, images and videos are preloaded.
      abstract void unregisterView() View de-registration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • handleData

         abstract void handleData(@NonNull() String data)

        Loads data for s2s partners

        Parameters:
        data - s2s data
      • load

         abstract void load()

        Start loading ads. In case of successful loading, the onLoad method will be called on the object passed as a listener, in case of loading error or if there is no advertisement to be shown - the onNoAd

        Ad listener should be added before this call

      • loadFromBid

         abstract void loadFromBid(@NonNull() String bidId)

        Start loading ad with the bidding ID

        Parameters:
        bidId - bidding ID
      • registerView

        @Deprecated() abstract void registerView(@NonNull() View view)

        Registration of the Advertising view. Must be called before showing the ad

        Parameters:
        view - Advertising view
      • registerView

        @Deprecated() abstract void registerView(@NonNull() View view, @Nullable() List<View> clickableViews)

        Registration of the Advertising view. Must be called before showing the ad

        Parameters:
        view - Advertising view
        clickableViews - specific clickable views inside Advertising view.
      • setCachePolicy

         abstract void setCachePolicy(int cachePolicy)

        By default, images and videos are preloaded. You can turn off the automatic loading of images and videos, but keep in mind that downloading them will take extra time, which will create an additional delay in displaying ads in your application.

        Parameters:
        cachePolicy - cache policy needed CachePolicy Value is ALL, IMAGE, VIDEO, NONE, or AUDIO
      • unregisterView

         abstract void unregisterView()

        View de-registration. Stops timers, frees resources. Must be called after view is no longer needed