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

    Class OptiViewAdsSession

    Owns one connector and one asynchronous session start. Retain this object outside React when the native player survives a UI unmount or reparent. Use this object's destroy(), not connector.destroy(), to finish playback.

    Index

    The existing connector, also used for targeting updates and SDK events.

    ready: Promise<void>

    Resolves when startup finishes; rejects with the original startup error.

    • get destroyed(): boolean

      True as soon as destruction is requested, including after a failed start.

      Returns boolean

    • Waits for pending startup, then destroys once. Repeated calls share the same promise.

      Returns Promise<void>

    • Observes state without taking ownership; unsubscribing does not end playback.

      Parameters

      • listener: () => void

      Returns () => void