本文整理了Java中com.segment.analytics.Analytics.reset()
方法的一些代码示例,展示了Analytics.reset()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Analytics.reset()
方法的具体详情如下:
包路径:com.segment.analytics.Analytics
类名称:Analytics
方法名:reset
[英]Resets the analytics client by clearing any stored information about the user. Events queued on disk are not cleared, and will be uploaded at a later time.
[中]通过清除有关用户的任何存储信息来重置分析客户端。磁盘上排队的事件不会被清除,将在以后上载。
代码示例来源:origin: segmentio/analytics-android
/**
* Logs out the current user by clearing any information, including traits and user id.
*
* @deprecated Use {@link #reset()} instead
*/
@Deprecated
public void logout() {
reset();
}
代码示例来源:origin: segmentio/analytics-android
@Test
public void reset() {
analytics.reset();
verify(integration).reset();
}
内容来源于网络,如有侵权,请联系作者删除!