BlueKaiOnDataPostedListener

@objc
public protocol BlueKaiOnDataPostedListener

Declare the BlueKai SDK delegate in application. This step is optional and is required only if you need a callback when data is posted to DMP server.

  • Callback on HTTP call made to DMP server when put/update API is called. It is optional.

    Declaration

    Swift

    @objc(onDataPosted:)
    optional func onDataPosted(status: Bool)

    Parameters

    status

    Indicating satus of data post call to DMP successful=true, failed=false.

  • Callback on HTTP call made to DMP server when put/update API is called. It is optional.

    Declaration

    Swift

    @objc
    optional func onDataPosted(response: URLResponse, dataPosted: [String : String], campaigns: AnyObject)

    Parameters

    response

    HTTP call URLResponce

    dataPosted

    Original pHint data which was passed as an argument to put/update API call & part of HTTP call made.

    campaigns

    Server response as JSON, containing campaigns if any running against the profile.