Class ExperienceManagerFactory

  • All Implemented Interfaces:

    
    public final class ExperienceManagerFactory
    
                        

    Factory class to create ExperienceManager based on the media type

    • 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
      final BaseExperienceManager create(ExperienceModel experienceModel) Creates the appropriate experience manager based on the provided experience model.
      • Methods inherited from class java.lang.Object

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

      • ExperienceManagerFactory

        ExperienceManagerFactory(Context context, CoroutineScope coroutineScope, MutableSharedFlow<MediaEvent> mediaEventFlow, InMobiLogger logger)
        Parameters:
        context - context
        coroutineScope - coroutine scope
        logger - logger
    • Method Detail

      • create

         final BaseExperienceManager create(ExperienceModel experienceModel)

        Creates the appropriate experience manager based on the provided experience model.

        This method determines whether to create a StaticExperienceManager for image content or a VideoExperienceManager for video content based on the type of the experience model.

        Parameters:
        experienceModel - The experience model defining the type of media content.
        Returns:

        The appropriate BaseExperienceManager implementation.