Fires whenever a data segment in a transaction set is read.
- (void)onSegment:(NSString*)tag :(NSString*)name :(NSString*)loopName :(NSString*)fullSegment;
func onSegment(_ tag: String, _ name: String, _ loopName: String, _ fullSegment: String)
The Segment event will fire when a data segment is read. The Tag parameter contains the tag of the segment. Name contains the name of the segment as defined in the associated transaction set schema. LoopName contains the name of the loop or group this segment is present in (such as N1Loop1).