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
The `reset` method clears the SDK’s internal stores for the current user and group. This is useful for apps where users log in and out with different identities on the same device over time.
428
+
429
+
{% codeexample %}
430
+
{% codeexampletab Method signature %}
431
+
```java
432
+
fun reset()
433
+
```
434
+
{% endcodeexampletab %}
435
+
436
+
{% codeexampletab Example use %}
437
+
```java
438
+
analytics.reset()
439
+
```
440
+
{% endcodeexampletab %}
441
+
{% endcodeexample %}
442
+
425
443
## Build Your Own Destination
426
444
427
445
If Segment doesn't support your Kotlin destination, you can build your own with the template Segment provides.
Copy file name to clipboardExpand all lines: src/connections/sources/catalog/libraries/server/kotlin/index.md
+26-8Lines changed: 26 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,15 +22,15 @@ To get started with the Analytics-Kotlin server library:
22
22
23
23
2. Add the Analytics dependency to your `build.gradle`.
24
24
25
-
Segment recommends you to install the library with a build system like Gradle, as it simplifies the process of upgrading versions and adding integrations. The library is distributed through [Jitpack](https://jitpack.io/){:target="_blank"}. Add the analytics module to your build.gradle as a dependency as shown in the code sample below.
25
+
Segment recommends you to install the library with a build system like Gradle, as it simplifies the process of upgrading versions and adding integrations. The library is distributed through [Maven Central](https://repo1.maven.org/maven2/com/segment/analytics/kotlin/android/){:target="_blank"}. Add the analytics module to your build.gradle as a dependency as shown in the code sample below, and replace `<latest_version>` with the latest version listed on Segment's [releases page](https://github.com/segmentio/analytics-kotlin/releases){:target="_blank"}.
Segment's plugin architecture enables you to modify and augment how the analytics client works. From modifying event payloads to changing analytics functionality, plugins help to speed up the process of getting things done.
181
181
182
-
Plugins are run through a timeline, which executes in order of insertion based on their entry types. Segment has these 5 entry types:
182
+
Plugins are run through a timeline, which executes in order of insertion based on their entry types. Segment has these five entry types:
The `reset` method clears the SDK’s internal stores for the current user and group. This is useful for apps where users log in and out with different identities on the same device over time.
401
+
402
+
{% codeexample %}
403
+
{% codeexampletab Method signature %}
404
+
```java
405
+
fun reset()
406
+
```
407
+
{% endcodeexampletab %}
408
+
409
+
{% codeexampletab Example use %}
410
+
```java
411
+
analytics.reset()
412
+
```
413
+
{% endcodeexampletab %}
414
+
{% endcodeexample %}
415
+
398
416
399
417
## Changelog
400
418
[View the Analytics-Kotlin changelog on GitHub](https://github.com/segmentio/analytics-kotlin/releases).
0 commit comments