Class NativeMedia

  • All Implemented Interfaces:

    
    public final class NativeMedia
    
                        

    Native media asset container supporting both image and video content.

    This asset represents the main media content of a native ad, which can be either static images or video content. The type field determines which sub-asset contains the actual media configuration.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      NativeMedia()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getType() The media type from NativeMediaType (static or video), set internally.
      final NativeImage getImage() Optional NativeImage configuration for static image content.
      final NativeVideo getVideo() Optional NativeVideo configuration for video content.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait