Class ExperienceResult

  • All Implemented Interfaces:

    
    public class ExperienceResult
    
                        

    Sealed class representing the result of loading a native ad experience.

    This class encapsulates the various outcomes that can occur when attempting to load and prepare a native ad experience, including successful loading, unavailable content, and failure scenarios. Each result type provides specific information relevant to that outcome.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class ExperienceResult.Success

      Represents a successful experience loading result.

      This result indicates that the native ad experience was successfully loaded and is ready for display. It contains the media view that can be rendered and optional VAST beacon data for video tracking.

      public final class ExperienceResult.UnAvailable

      Represents a result where the experience content is unavailable.

      This result occurs when the ad content cannot be loaded but it's not necessarily an error - for example, when video content is not required and fails to load, or when optional media assets are not available. The ad can still potentially be displayed without the media content.

      public final class ExperienceResult.Failure

      Represents a failed experience loading result.

      This result indicates that a critical error occurred during the loading process that prevents the ad from being displayed. The error code provides specific information about the type of failure for debugging and telemetry purposes.

    • 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
      • Methods inherited from class java.lang.Object

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

    • Method Detail