BlueKai

@objc
open class BlueKai : NSObject

Bluekai Singelton Class

  • Undocumented

    Declaration

    Swift

    @objc
    public weak var delegate: BlueKaiOnDataPostedListener
  • Initialising the BlueKai SDK with required arguments

    Declaration

    Swift

    @available(*, deprecated, message: "Use init(﹚ method instead")
    @objc(initDirectWithSiteId:withAppVersion:withIdfa:withDevMode:)
    public init(siteId: String, appVersion: String, idfa: String, devMode: Bool)

    Parameters

    siteId

    contact your BlueKai rep for this id; required.

    appVersion

    version of your iOS application; required.

    idfa

    IDFA (identifier for advertising) advertiser id from Apple, required.

    devMode

    BOOL value to toggle on/off verbose logging; defaults to “NO”; optional

    Return Value

    Initialized object for BlueKai SDK.

  • Initialising the BlueKai SDK without IDFA

    Declaration

    Swift

    @available(*, deprecated, message: "Use init(﹚ method instead")
    @objc(initDirectAutoIdfaEnabledWithSiteId:withAppVersion:withDevMode:)
    public init(siteId: String, appVersion: String, devMode: Bool)

    Parameters

    siteId

    contact your BlueKai rep for this id; required.

    appVersion

    version of your iOS application; required.

    devMode

    BOOL value to toggle on/off verbose logging; defaults to “NO”; optional

    Return Value

    Initialized object for BlueKai SDK.

  • Initialising the BlueKai SDK. Create the instance for BlueKai SDK with no arguments

    Declaration

    Swift

    @objc
    override public init()

    Return Value

    Initialized object for BlueKai SDK.

  • Set user agent - deprecated

    Declaration

    Swift

    @available(*, deprecated, message: "Use putValue:forKey of ORAAdvDataContainer with ORAAdvConfigUserAgent")
    @objc
    public var userAgent: String { get set }
  • Sets development mode - deprecated

    Declaration

    Swift

    @available(*, deprecated, message: "Use putValue:forKey of ORAAdvDataContainer with ORAAdvConfigDevMode")
    @objc
    public var devMode: Bool { get set }
  • This property is used to enable / disable logging

    Declaration

    Swift

    @objc
    public var isLoggingEnabled: Bool { get set }
  • Sets iOS app version - deprecated

    Declaration

    Swift

    @available(*, deprecated, message: "Use putValue:forKey of ORAAdvDataContainer with ORAAdvConfigAppVersion")
    @objc
    public var appVersion: String { get set }
  • Sets BlueKai siteId - deprecated contact your BlueKai rep for this id

    Declaration

    Swift

    @available(*, deprecated, message: "Use putValue:forKey of ORAAdvDataContainer with ORAAdvConfigSiteID")
    @objc
    public var siteId: String { get set }
  • Sets HTTPS transfer protocol - deprecated default value is false

    Declaration

    Swift

    @available(*, deprecated, message: "Always uses https")
    @objc
    public var useHttps: Bool { get set }
  • Sets user opt-in preference default value is true

    Declaration

    Swift

    @available(*, deprecated, message: "Use putValue:forKey of ORAAdvDataContainer with ORAAdvConfigDataPostAllowed")
    @objc
    public var optInPreference: Bool { get set }
  • Sets ViewController

    Declaration

    Swift

    @available(*, deprecated, message: "Not needed because we don't have SDK initialisation via WebView")
    @objc
    public var viewController: UIViewController { get set }
  • Sets URL params as a key/value pair

    Declaration

    Swift

    @available(*, deprecated, message: "Use put method instead")
    @objc
    public func update(withKey key: String, andValue value: String)

    Parameters

    key

    key in String format .

    value

    value in String format.

  • Sets URL params by using Dictionary

    Declaration

    Swift

    @available(*, deprecated, message: "Use putAll method instead")
    @objc
    public func update(withDictionary dictionary: [String : String])

    Parameters

    dictionary

    key/value pairs to be constructed as URL params.

  • Sets URL params as a key/value pair

    Declaration

    Swift

    @objc
    public func put(key: String?, value: String?)

    Parameters

    key

    key in String format .

    value

    value in String format.

  • Sets URL params by using Dictionary

    Declaration

    Swift

    @objc
    public func putAll(map: [String : String]?)

    Parameters

    map

    map is Dictionary of it’s key and value pair .

  • Sets URL params as a key/value pair

    Declaration

    Swift

    @objc
    public func put(email: String?, key: String?, value: String?)

    Parameters

    email

    email in String format .

    key

    key in String format .

    value

    value in String format.

  • Sets URL params by using Dictionary

    Declaration

    Swift

    @objc
    public func putAll(email: String?, map: [String : String]?)

    Parameters

    email

    email in String format

    map

    map is Dictionary of it’s key and value pair .

  • Sets URL params as a key/value pair

    Declaration

    Swift

    @objc
    public func put(customerIdKey: String?, customerIdValue: String?, key: String?, value: String?)

    Parameters

    unid

    Unique Customer Id Key in String format .

    unidValue

    Unique Customer Id Value in String format .

    key

    key in String format .

    value

    value in String format.

  • Sets URL params by using Dictionary

    Declaration

    Swift

    @objc
    public func putAll(customerIdKey: String?, customerIdValue: String?, map: [String : String]?)

    Parameters

    unid

    Unique Customer Id Key in String format .

    unidValue

    Unique Customer Id Value in String format .

    map

    map is Dictionary of it’s key and value pair .

  • Method to resume CXAdvertisementMobileSDK process after calling application resumes. To use in “applicationDidBecomeActive” delegate method of the calling activity

    Declaration

    Swift

    @objc
    public func resume()