setAnonymousId static method
Sets a custom anonymous ID for the current user.
anonymousId is the anonymous identifier to use.
This method allows you to set a specific anonymous ID instead of using the automatically generated one.
Implementation
@Deprecated("Use instance.putAnonymousId instead")
static void setAnonymousId(String anonymousId) {
putAnonymousId(anonymousId);
}