Builder

@objc(AASDKAdswizzAdPodcastManagerBuilder)
public class Builder : NSObject

Builder to conveniently create an AdswizzAdPodcastManager instance.

  • Set the HTTP protocol. The default is .https.

    Declaration

    Swift

    @objc
    public func with(httpProtocol: HTTPProtocol) -> Builder

    Parameters

    httpProtocol

    http protocol

    Return Value

    the same builder object

  • Set the companion zone ID. Optional.

    Declaration

    Swift

    @objc
    public func with(companionZones: String) -> Builder

    Parameters

    companionZones

    companionZones description

    Return Value

    the same builder object

  • Set the Adswizz ad server. Mandatory.

    Declaration

    Swift

    @objc
    public func with(adServer: String) -> Builder

    Parameters

    adServer

    Adswizz server

    Return Value

    the same builder object.

  • Builds an AdswizzAdPodcastManager object.

    Throws

    a missing server address

    Declaration

    Swift

    @objc
    public func build() throws -> AdswizzAdPodcastManager

    Return Value

    a valid AdswizzAdPodcastManager object