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

    Interface THEOplayerAdsBindingOptions

    THEOplayer configuration and host callbacks, independent of session ownership.

    interface THEOplayerAdsBindingOptions {
        adsConfig?: OptiViewAdsReactNativeConfig;
        config?: PlayerConfiguration;
        enabled?: boolean;
        onPlayerDestroy?: (player: THEOplayer) => void;
        onPlayerReady?: (player: THEOplayer) => void;
        onPlayerRestored?: (player: THEOplayer) => void;
        sessionConfig?: SessionConfig;
    }

    Hierarchy

    • PlayerCallbacks
      • THEOplayerAdsBindingOptions
    Index

    SDK configuration. Missing configuration leaves the session factory idle.

    config?: PlayerConfiguration

    Existing player configuration; the binding enables its facade when needed.

    enabled?: boolean

    Whether new ad sessions may be created. Defaults to true.

    onPlayerDestroy?: (player: THEOplayer) => void

    Forwarded after clearing the bound player.

    onPlayerReady?: (player: THEOplayer) => void

    Forwarded after binding the ready player.

    onPlayerRestored?: (player: THEOplayer) => void

    Forwarded after rebinding a retained player; map the host's restore callback to this handler.

    sessionConfig?: SessionConfig

    Session configuration; memoize function-valued targeting macros.