PALSession

public protocol PALSession : PALSessionClient

Protocol PALSession

  • Loads a nonce manager given the configuration and returns the nonce that the publisher should add to their ad requests as the value for the &paln URL parameter.

    Declaration

    Swift

    func initialize(palConfig: PALSessionConfiguration, completion: @escaping (Result<String, Error>) -> Void)
  • Should be called once your video playback session begins.

    Declaration

    Swift

    func sendPlaybackStart()
  • Should be called once your video playback session comes to an end

    Declaration

    Swift

    func sendPlaybackEnd()
  • Destroys the internal nonce loader and nonce manager so this session cannot be used anymore.

    Declaration

    Swift

    func shutdown()