exposure
Use the exposure API to collect exposure-type events.
Method signature
The following code shows the method signature of the exposure API:
copy
public func exposure(name: String, parameters: [LogContentItem]? = nil, bizType: String? = nil)Request parameters
Name | Type | Description |
name | String | Event name. |
parameters | Event collection parameters. | |
bizType | String? | Business Type. |
Response parameters
N/A
Exception
N/A
Sample
Swift
copy
let parameters: [LogContentItem] = [
.contentId("contentIdDummy"),
.deliveryPlanId("deliveryPlanIdDummy"),
.extras(["extras1": "extras1Dummy"]),
]
ComponentManager.ASAP?.logComponent?.exposure(name: "exposure_event", parameters: parameters, bizType:"ASAP")