Utils

public class Utils : NSObject

A utility class for handling various ad-related operations and conversions.

  • The class is created as a singleton object & used

    Declaration

    Swift

    @objc
    public static let shared: Utils
  • A delegate to handle native ad events.

    Declaration

    Swift

    @objc
    public weak var delegate: NativeAdDelegate?
  • Deprecated. MoPub is not available anymore. Use Prebid MAX adapters instead.

    Declaration

    Swift

    @available(*, deprecated, message: "MoPub is not available anymore. Use Prebid MAX adapters instead.")
    @objc
    public func convertDictToMoPubKeywords(dict: Dictionary<String, String>) -> String
  • Finds a native ad object within a given object.

    Declaration

    Swift

    @objc
    public func findNative(adObject: AnyObject)

    Parameters

    adObject

    The object to search within.