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.
210
-
211
-
{% codeexample %}
212
-
{% codeexampletab Method signature %}
213
-
```java
214
-
fun reset()
215
-
```
216
-
{% endcodeexampletab %}
217
-
218
-
{% codeexampletab Example use %}
219
-
```java
220
-
analytics.reset()
221
-
```
222
-
{% endcodeexampletab %}
223
-
{% endcodeexample %}
224
-
225
206
## Plugin Architecture
226
207
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.
227
208
@@ -365,6 +346,7 @@ The Analytics-Kotlin utility methods help you work with plugins from the analyti
365
346
-[Add](#add)
366
347
-[Find](#find)
367
348
-[Remove](#remove)
349
+
-[Reset](#reset)
368
350
369
351
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.
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
+
444
443
## Build Your Own Destination
445
444
446
445
If Segment doesn't support your Kotlin destination, you can build your own with the template Segment provides.
0 commit comments