Class InMobiJsonPubContent
-
- All Implemented Interfaces:
-
com.inmobi.media.ads.network.common.model.PubContent
public final class InMobiJsonPubContent implements PubContent
InMobiJsonPubContentrepresents the JSON content specific to InMobi. It implements thePubContentinterface and provides methods to parse, retrieve, and validate the content.
-
-
Constructor Summary
Constructors Constructor Description InMobiJsonPubContent(String content)
-
Method Summary
Modifier and Type Method Description UnitparseContent()Parses the ad content asynchronously. InMobiJsonResponsegetContent()Retrieves the parsed and validated ad content. UnitvalidateOrThrow()Validates the parsed content and throws an exception if validation fails. -
-
Constructor Detail
-
InMobiJsonPubContent
InMobiJsonPubContent(String content)
-
-
Method Detail
-
parseContent
Unit parseContent()
Parses the ad content asynchronously.
This method performs the actual parsing of the raw ad content into a structured format. The parsing is asynchronous to handle potentially expensive operations without blocking the calling thread.
-
getContent
InMobiJsonResponse 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.
-
-
-
-