click
Use the click API to collect click-type events
Method signature
The following code shows the method signature of the click API:
copy
public func click(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.click(name: "click_event", parameters: parameters,bizType:"bizTypeCode")