Adaptive Media Player

AmpNielsen Docs

AmpNielsenManager

open class AmpNielsenManager: NSObject, NielsenAppApiDelegate

Class in charge of manage the Nielsen DCR integration.

  • The native player.

    Declaration

    Swift

    open let ampPlayer: AmpPlayer?
  • Initializes a new AmpNielsenManager with the parameters provided.

    Declaration

    Swift

    public init?(player: AmpPlayer, appInfo: String)

    Parameters

    player

    The player where the plugins is activated

    appInfo

    String with the Nielsen init info: appid, appversion, appname, sfcode on JSON Format

  • Initializes a new AmpNielsenManager with the parameters provided.

    Declaration

    Swift

    public init(appInfo: [String:AnyObject])

    Parameters

    appInfo

    Dictionary with the Nielsen init info: appid, appversion, appname, sfcode

  • Get the URL of the web page that is used for giving user a chance to opt out from the Nielsen measurements..

    Declaration

    Swift

    open func getOptOutURL() -> String?
  • Set the URL of the web page that is used for giving user a chance to opt out from the Nielsen measurements..

    • parameyer optOut: String

    Declaration

    Swift

    open func userOptOut(_ optOut:String) -> Bool
  • Registers an observer to be notified of plugin events.

    Declaration

    Swift

    open func registerObserver(_ observer: AmpNielsenObserver) -> Int

    Parameters

    observer

    The observer to be registered.

    Return Value

    The id of the registered observer.

  • Set the channel info

    Declaration

    Swift

    open func set(channelInfo:String)

    Parameters

    channelInfo

    a JSON formatted object that includes metadata of the channel.

  • Set the channel info

    Declaration

    Swift

    open func set(metaData:String)

    Parameters

    metaData

    a JSON formatted object that includes video’s metadata.