Skip to content

Commit

Permalink
Add distinct id cache getter
Browse files Browse the repository at this point in the history
  • Loading branch information
vcoolish committed Sep 12, 2022
1 parent 0508076 commit ee8b443
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions posthog/src/main/java/com/posthog/android/PostHog.java
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,11 @@ public String getAnonymousId() {
return properties.anonymousId();
}

public String getDistinctId() {
Properties properties = propertiesCache.get();
return properties.distinctId();
}

/** Creates a {@link StatsSnapshot} of the current stats for this instance. */
public StatsSnapshot getSnapshot() {
return stats.createSnapshot();
Expand Down

0 comments on commit ee8b443

Please sign in to comment.