Skip to content

Commit ad4054c

Browse files
committed
moved reset to the right location for kotlin server
1 parent c8c8988 commit ad4054c

File tree

1 file changed

+18
-19
lines changed
  • src/connections/sources/catalog/libraries/server/kotlin

1 file changed

+18
-19
lines changed

src/connections/sources/catalog/libraries/server/kotlin/index.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -176,25 +176,6 @@ analytics.group("user-123", buildJsonObject {
176176
{% endcodeexampletab %}
177177
{% endcodeexample %}
178178

179-
## Utility Methods
180-
181-
### Reset
182-
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.
183-
184-
{% codeexample %}
185-
{% codeexampletab Method signature %}
186-
```java
187-
fun reset()
188-
```
189-
{% endcodeexampletab %}
190-
191-
{% codeexampletab Example use %}
192-
```java
193-
analytics.reset()
194-
```
195-
{% endcodeexampletab %}
196-
{% endcodeexample %}
197-
198179
## Plugin Architecture
199180
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.
200181

@@ -338,6 +319,7 @@ The Analytics-Kotlin utility methods help you work with plugins from the analyti
338319
- [Add](#add)
339320
- [Find](#find)
340321
- [Remove](#remove)
322+
- [Reset](#reset)
341323

342324
There's also the [Flush](#flush) method to help you manage the current queue of events.
343325

@@ -414,6 +396,23 @@ analytics.flush("SomePlugin")
414396
{% endcodeexampletab %}
415397
{% endcodeexample %}
416398

399+
### Reset
400+
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+
417416

418417
## Changelog
419418
[View the Analytics-Kotlin changelog on GitHub](https://github.com/segmentio/analytics-kotlin/releases).

0 commit comments

Comments
 (0)