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
- Set the NwCoreDelegate: Inherit from NwCoreDelegate protocol and set the delegate to the NwCore.
- Implement nwCore(onEvent: NwEvent) method: Once an event is received, it will be in the type of a NwEvent.
- Handle Event Types: Based on the type of the event, implement the appropriate logic to process or handle the event.
- 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.