Class StaticExperienceManager

    • 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
      Unit load() Loads and displays a static image experience.
      <Error class: unknown class> inflate(FrameLayout parentLayout) Inflates the static image view into the provided parent layout.
      Unit attachWindowLifecycleObserver(Flow<Boolean> windowFlow) Attaches window lifecycle observer (No-op for static experiences).
      Unit detachObserversAndPause() Detaches observers and pauses the experience (No-op for static experiences).
      Unit destroy() Destroys the static experience and releases resources.
      • Methods inherited from class java.lang.Object

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

      • load

         Unit load()

        Loads and displays a static image experience.

        This method prepares the static image content by sanitizing and sorting available images, then loading the most suitable image into the image view. It handles error cases and emits appropriate telemetry events.

      • inflate

         <Error class: unknown class> inflate(FrameLayout parentLayout)

        Inflates the static image view into the provided parent layout.

        This method adds the prepared image view to the parent layout with appropriate layout parameters, centering it within the container.

        Parameters:
        parentLayout - The FrameLayout where the static image view will be added.
      • attachWindowLifecycleObserver

         Unit attachWindowLifecycleObserver(Flow<Boolean> windowFlow)

        Attaches window lifecycle observer (No-op for static experiences).

        Static images don't require window lifecycle management as they don't have dynamic content that needs to be paused/resumed based on visibility.

        Parameters:
        windowFlow - A flow indicating window visibility state (ignored for static content).
      • detachObserversAndPause

         Unit detachObserversAndPause()

        Detaches observers and pauses the experience (No-op for static experiences).

        Static images don't have active observers or dynamic content that needs to be paused, so this method performs no operations.

      • destroy

         Unit destroy()

        Destroys the static experience and releases resources.

        This method removes the image view from its parent container and cancels any ongoing image loading operations to prevent memory leaks.