Skip to content

Commit

Permalink
Update Configuration.md
Browse files Browse the repository at this point in the history
delete downgrade method.
  • Loading branch information
cpacm authored and YoloMao committed Mar 19, 2024
1 parent 6867182 commit d03ca31
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docs/android/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ import TabItem from '@theme/TabItem';
| :------------------------------------------- | :------------- | :----: | :------ | :-------------------------------- | ------- |
| setImpressionScale [#](#1-setimpressionscale) | _float_ || `0` | 元素曝光事件中的比例因子,范围 [0-1] | |
| setWebViewBridgeEnabled [#](#2-setwebviewbridgeenabled)| _boolean_|| `true` | 是否全量采集 hybrid 数据 | |
| downgrade [#](#3-downgrade) | _void_ ||| 恢复旧版本无埋点上报逻辑 | |
| enableFragmentTag [#](#4-enableFragmentTag) | _boolean_ || `false` | 是否将Fragment的tag作为无埋点路径的记号 | |
| enableFragmentTag [#](#3-enableFragmentTag) | _boolean_ || `false` | 是否将Fragment的tag作为无埋点路径的记号 | |


## 通用配置说明
Expand Down Expand Up @@ -201,9 +200,6 @@ GrowingAutotracker.startWithConfiguration(this,
无埋点默认会采集对应 webview 的 hybrid 事件,设置为 false,可以关闭采集 hybrid 数据。<br/>
如果需要设置采集单个 webview 的 hybrid 事件,可以通过运行时 API 接口`bridgeWebView(View webView)`开启采集。

### 3. downgrade
调用该方法后,所有的无埋点将以旧版本的无埋点逻辑上报数据,请谨慎使用。

### 4. enableFragmentTag
### 3. enableFragmentTag
在使用一些库时会导致Fragment的Tag不可预计,比如在高版本 Navigation 库,Navigation库会对所有的导航 Fragment 赋予一个 UUID 生成的随机TAG。为了保证无埋点路径的准确,取消无埋点路径xcontent中对tag的支持,现在默认取 Fragment 的id为xcontent路径。
若客户需要tag支持,可打开 enableFragmentTag(true)。

0 comments on commit d03ca31

Please sign in to comment.