iOS SDK (Core)

Integrate EXP Events

2min

To integrate analytics events using the nwCore SDK, developers should follow these steps to implement the delegate pattern with the onEvent method. The events are delivered as NwEvent objects with two properties: type and payload.

For detailed information on the events, refer to the documentation at the following link: LINK

Steps to Implement the event delegate:

  1. Set the NwCoreDelegate: Inherit from NwCoreDelegate protocol and set the delegate to the NwCore.
  2. Implement nwCore(onEvent: NwEvent) method: Once an event is received, it will be in the type of a NwEvent.
  3. Handle Event Types: Based on the type of the event, implement the appropriate logic to process or handle the event.
  4. Process Payload: Extract and utilize the data from the payload property as needed for your application.



By following these steps, you can effectively integrate and handle analytics events using the nwCore SDK.

Swift

Swift