Interface NativeAd

  • All Implemented Interfaces:

    
    public interface NativeAd
    
                        

    Native ad.

    • 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
    • Constructor Detail

    • Method Detail

      • bindAd

         abstract Unit bindAd(NativeAdView nativeAdView)

        Binds the specified view with the native ad's content.

        Parameters:
        nativeAdView - The view to bind with the ad content.
      • getMeta

         abstract Map<String, Object> getMeta()

        Additional metadata of the native ad.

        This map may contain various key-value pairs providing extra information about the ad. All numeric values in this map should be treated as instances of Number. Cast values accordingly before using, for example:

        val value = (meta["key"] as? Number)?.toDouble()