Class HtmlPubContent

  • All Implemented Interfaces:
    com.inmobi.media.ads.network.common.model.PubContent

    
    public final class HtmlPubContent
     implements PubContent
                        

    HtmlPubContent represents the HTML content. It implements the PubContent interface and provides methods to retrieve and validate the content.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getContent() Retrieves the parsed and validated ad content.
      Unit validateOrThrow() Validates the parsed content and throws an exception if validation fails.
      • Methods inherited from class com.inmobi.media.ads.network.common.model.PubContent

        parseContent
      • Methods inherited from class java.lang.Object

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

      • HtmlPubContent

        HtmlPubContent(String content)
    • Method Detail

      • getContent

         String getContent()

        Retrieves the parsed and validated ad content.

        This method returns the final processed content that can be used for ad rendering. The content type varies based on the implementation and content format.

        Returns:

        The parsed ad content object, or null if no content is available.

      • validateOrThrow

         Unit validateOrThrow()

        Validates the parsed content and throws an exception if validation fails.

        This method performs validation checks on the parsed content to ensure it meets the required format and contains necessary elements for proper ad rendering.