OptiView Ads SDK for React Native
    Preparing search index...

    Type Alias UseOptiViewAdsOptions

    UseOptiViewAdsOptions:
        | { ownership: "external"; session: OptiViewAdsSession
        | null }
        | { createSession: () => OptiViewAdsSession | null; ownership: "hook" }

    Selects session ownership. External sessions survive unmount; hook-owned sessions are recreated when the memoized createSession callback changes.

    Type Declaration

    • { ownership: "external"; session: OptiViewAdsSession | null }
      • ownership: "external"

        The app owns final destruction, such as when closing a floating player.

      • session: OptiViewAdsSession | null

        Retained session, or null while the host player is not ready.

    • { createSession: () => OptiViewAdsSession | null; ownership: "hook" }
      • createSession: () => OptiViewAdsSession | null

        Memoize with useCallback; return null until the player is ready. Never create during render.

      • ownership: "hook"

        The hook owns startup and destruction.