Skip to content

Commit c8c8988

Browse files
committed
Moved reset to the right location
1 parent 9dcec88 commit c8c8988

File tree

1 file changed

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

1 file changed

+18
-19
lines changed

src/connections/sources/catalog/libraries/mobile/kotlin-android/index.md

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

206-
## Utility Methods
207-
208-
### Reset
209-
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-
225206
## Plugin Architecture
226207
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.
227208

@@ -365,6 +346,7 @@ The Analytics-Kotlin utility methods help you work with plugins from the analyti
365346
- [Add](#add)
366347
- [Find](#find)
367348
- [Remove](#remove)
349+
- [Reset](#reset)
368350

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

@@ -441,6 +423,23 @@ analytics.flush("SomePlugin")
441423
{% endcodeexampletab %}
442424
{% endcodeexample %}
443425

426+
### Reset
427+
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+
444443
## Build Your Own Destination
445444

446445
If Segment doesn't support your Kotlin destination, you can build your own with the template Segment provides.

0 commit comments

Comments
 (0)