Host
@objcMembers
public class Host : NSObject
A singleton class that manages the Prebid server URL, including a custom URL.
-
The class is created as a singleton object & used
Declaration
Swift
public static let shared: Host
-
The CustomHost property holds the URL for the custom prebid adaptor
Declaration
Swift
@objc public func setCustomHostURL(_ urlString: String?) throws
-
This function retrieves the prebid server URL for the selected host
Declaration
Swift
public func getHostURL(host: PrebidHost) throws -> String
-
This function verifies if the prebid server URL is in the url format
Declaration
Swift
public func verifyUrl(urlString: String?) -> Bool