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.
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
-
198
179
## Plugin Architecture
199
180
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.
200
181
@@ -338,6 +319,7 @@ The Analytics-Kotlin utility methods help you work with plugins from the analyti
338
319
-[Add](#add)
339
320
-[Find](#find)
340
321
-[Remove](#remove)
322
+
-[Reset](#reset)
341
323
342
324
There's also the [Flush](#flush) method to help you manage the current queue of events.
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
+
417
416
418
417
## Changelog
419
418
[View the Analytics-Kotlin changelog on GitHub](https://github.com/segmentio/analytics-kotlin/releases).
0 commit comments