You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val event =TrackEvent(event = name, properties = properties)
161
-
process(event)
163
+
process(event, enrichment)
162
164
}
163
165
164
166
/**
@@ -169,14 +171,16 @@ open class Analytics protected constructor(
169
171
* @param name Name of the action
170
172
* @param properties to describe the action. Needs to be [serializable](https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md)
171
173
* @param serializationStrategy strategy to serialize [properties]
174
+
* @param enrichment a closure that enables enrichment on the generated event
@@ -186,13 +190,15 @@ open class Analytics protected constructor(
186
190
*
187
191
* @param name Name of the action
188
192
* @param properties to describe the action. Needs to be [serializable](https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md)
193
+
* @param enrichment a closure that enables enrichment on the generated event
val event =IdentifyEvent(userId = userId, traits = traits)
220
-
process(event)
227
+
process(event, enrichment)
221
228
}
222
229
223
230
/**
@@ -235,14 +242,16 @@ open class Analytics protected constructor(
235
242
* @param userId Unique identifier which you recognize a user by in your own database
236
243
* @param traits [Traits] about the user. Needs to be [serializable](https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md)
237
244
* @param serializationStrategy strategy to serialize [traits]
245
+
* @param enrichment a closure that enables enrichment on the generated event
@@ -258,12 +267,14 @@ open class Analytics protected constructor(
258
267
* info.
259
268
*
260
269
* @param traits [Traits] about the user. Needs to be [serializable](https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md)
270
+
* @param enrichment a closure that enables enrichment on the generated event
userId ="", // using "" for userId, which will get filled down the pipe
290
302
traits = traits
291
303
)
292
-
process(event)
304
+
process(event, enrichment)
293
305
}
294
306
295
307
/**
@@ -306,13 +318,15 @@ open class Analytics protected constructor(
306
318
*
307
319
* @param traits [Traits] about the user. Needs to be [serializable](https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md)
308
320
* @param serializationStrategy strategy to serialize [traits]
321
+
* @param enrichment a closure that enables enrichment on the generated event
@@ -329,13 +343,15 @@ open class Analytics protected constructor(
329
343
*
330
344
* @param userId Unique identifier which you recognize a user by in your own database
331
345
* @param traits [Traits] about the user. Needs to be [serializable](https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md)
346
+
* @param enrichment a closure that enables enrichment on the generated event
@@ -367,18 +385,21 @@ open class Analytics protected constructor(
367
385
* @param category A category to describe the screen.
368
386
* @param properties [Properties] to add extra information to this call. Needs to be [serializable](https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md)
369
387
* @param serializationStrategy strategy to serialize [properties]
388
+
* @param enrichment a closure that enables enrichment on the generated event
@@ -390,14 +411,16 @@ open class Analytics protected constructor(
390
411
* @param title A name for the screen.
391
412
* @param category A category to describe the screen.
392
413
* @param properties [Properties] to add extra information to this call. Needs to be [serializable](https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md)
414
+
* @param enrichment a closure that enables enrichment on the generated event
val event =GroupEvent(groupId = groupId, traits = traits)
417
-
process(event)
441
+
process(event, enrichment)
418
442
}
419
443
420
444
/**
@@ -427,14 +451,16 @@ open class Analytics protected constructor(
427
451
* @param groupId Unique identifier which you recognize a group by in your own database
428
452
* @param traits [Traits] about the group. Needs to be [serializable](https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md)
429
453
* @param serializationStrategy strategy to serialize [traits]
454
+
* @param enrichment a closure that enables enrichment on the generated event
@@ -446,13 +472,15 @@ open class Analytics protected constructor(
446
472
*
447
473
* @param groupId Unique identifier which you recognize a group by in your own database
448
474
* @param traits [Traits] about the group. Needs to be [serializable](https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md)
475
+
* @param enrichment a closure that enables enrichment on the generated event
0 commit comments