@gkd-kit/docs 0.0.1707218812039 → 0.0.1707310164513

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/.vitepress/dist/404.html +4 -4
  2. package/.vitepress/dist/api/index.html +7 -7
  3. package/.vitepress/dist/api/interfaces/RawApp.html +7 -7
  4. package/.vitepress/dist/api/interfaces/RawAppGroup.html +8 -8
  5. package/.vitepress/dist/api/interfaces/RawAppRule.html +7 -7
  6. package/.vitepress/dist/api/interfaces/RawAppRuleProps.html +7 -7
  7. package/.vitepress/dist/api/interfaces/RawCategory.html +7 -7
  8. package/.vitepress/dist/api/interfaces/RawCommonProps.html +7 -7
  9. package/.vitepress/dist/api/interfaces/RawGlobalApp.html +7 -7
  10. package/.vitepress/dist/api/interfaces/RawGlobalGroup.html +8 -8
  11. package/.vitepress/dist/api/interfaces/RawGlobalRule.html +7 -7
  12. package/.vitepress/dist/api/interfaces/RawGlobalRuleProps.html +7 -7
  13. package/.vitepress/dist/api/interfaces/RawGroupProps.html +7 -7
  14. package/.vitepress/dist/api/interfaces/RawRuleProps.html +7 -7
  15. package/.vitepress/dist/api/interfaces/RawSubscription.html +7 -7
  16. package/.vitepress/dist/api/type-aliases/IArray.html +7 -7
  17. package/.vitepress/dist/api/type-aliases/Integer.html +7 -7
  18. package/.vitepress/dist/assets/{api_interfaces_RawAppGroup.md.FY3lS65D.js → api_interfaces_RawAppGroup.md.iPH_Ryur.js} +2 -2
  19. package/.vitepress/dist/assets/{api_interfaces_RawAppGroup.md.FY3lS65D.lean.js → api_interfaces_RawAppGroup.md.iPH_Ryur.lean.js} +1 -1
  20. package/.vitepress/dist/assets/{api_interfaces_RawGlobalGroup.md.GiXXUzRQ.js → api_interfaces_RawGlobalGroup.md.lXW_7uu9.js} +2 -2
  21. package/.vitepress/dist/assets/{api_interfaces_RawGlobalGroup.md.GiXXUzRQ.lean.js → api_interfaces_RawGlobalGroup.md.lXW_7uu9.lean.js} +1 -1
  22. package/.vitepress/dist/assets/{app.kOvcn_0B.js → app.b-uREc2D.js} +1 -1
  23. package/.vitepress/dist/assets/chunks/@localSearchIndexroot.0lVEGynl.js +1 -0
  24. package/.vitepress/dist/assets/chunks/{VPLocalSearchBox.xkuEK57O.js → VPLocalSearchBox.oasC-smd.js} +2 -2
  25. package/.vitepress/dist/assets/chunks/{theme.yFgFlaEK.js → theme.LuVFQIpW.js} +1 -1
  26. package/.vitepress/dist/assets/{faq_index.md.GYJFLvV7.js → faq_index.md.UKJ7UpJ0.js} +1 -1
  27. package/.vitepress/dist/assets/{faq_index.md.GYJFLvV7.lean.js → faq_index.md.UKJ7UpJ0.lean.js} +1 -1
  28. package/.vitepress/dist/assets/{guide_index.md.f2iPwZpD.js → guide_index.md.AnsVcmGC.js} +1 -1
  29. package/.vitepress/dist/assets/{guide_index.md.f2iPwZpD.lean.js → guide_index.md.AnsVcmGC.lean.js} +1 -1
  30. package/.vitepress/dist/assets/{index.md.Z9LEOsqV.js → index.md.DPFMZPAE.js} +1 -1
  31. package/.vitepress/dist/assets/{index.md.Z9LEOsqV.lean.js → index.md.DPFMZPAE.lean.js} +1 -1
  32. package/.vitepress/dist/assets/{scription_index.md.uLyE0WPU.js → scription_index.md.gqW_rGK0.js} +1 -1
  33. package/.vitepress/dist/assets/{scription_index.md.uLyE0WPU.lean.js → scription_index.md.gqW_rGK0.lean.js} +1 -1
  34. package/.vitepress/dist/assets/{selector_index.md.1pga37o0.js → selector_index.md.4OmFycFK.js} +1 -1
  35. package/.vitepress/dist/assets/{selector_index.md.1pga37o0.lean.js → selector_index.md.4OmFycFK.lean.js} +1 -1
  36. package/.vitepress/dist/assets/style.WoxoFVlf.css +1 -1
  37. package/.vitepress/dist/faq/index.html +8 -8
  38. package/.vitepress/dist/guide/index.html +8 -8
  39. package/.vitepress/dist/hashmap.json +1 -1
  40. package/.vitepress/dist/index.html +7 -7
  41. package/.vitepress/dist/scription/index.html +8 -8
  42. package/.vitepress/dist/selector/index.html +8 -8
  43. package/package.json +1 -1
  44. package/.vitepress/dist/assets/chunks/@localSearchIndexroot.wjv0I4hJ.js +0 -1
@@ -1,5 +1,5 @@
1
- import{_ as e,c as a,o as r,V as o}from"./chunks/framework.IfA2_2T5.js";const f=JSON.parse('{"title":"RawAppGroup","description":"","frontmatter":{},"headers":[],"relativePath":"api/interfaces/RawAppGroup.md","filePath":"api/interfaces/RawAppGroup.md","lastUpdated":null}'),t={name:"api/interfaces/RawAppGroup.md"},i=o(`<h1 id="rawappgroup" tabindex="-1">RawAppGroup <a class="header-anchor" href="#rawappgroup" aria-label="Permalink to &quot;RawAppGroup&quot;">​</a></h1><p>应用规则组</p><h2 id="extends" tabindex="-1">Extends <a class="header-anchor" href="#extends" aria-label="Permalink to &quot;Extends&quot;">​</a></h2><ul><li><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawAppRuleProps.html"><code>RawAppRuleProps</code></a></li></ul><h2 id="properties" tabindex="-1">Properties <a class="header-anchor" href="#properties" aria-label="Permalink to &quot;Properties&quot;">​</a></h2><h3 id="rules" tabindex="-1">rules <a class="header-anchor" href="#rules" aria-label="Permalink to &quot;rules&quot;">​</a></h3><blockquote><p><strong>rules</strong>: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code> | <a href="./RawAppRule.html"><code>RawAppRule</code></a>&gt;</p></blockquote><p>string =&gt; { matches: string }</p><p>string[] =&gt; { matches: string }[]</p><hr><h3 id="actioncd" tabindex="-1">actionCd? <a class="header-anchor" href="#actioncd" aria-label="Permalink to &quot;actionCd?&quot;">​</a></h3><blockquote><p><strong>actionCd</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>单位: 毫秒</p><p>当前规则的冷却时间, 或者执行 action 最小间隔</p><h4 id="default" tabindex="-1">Default <a class="header-anchor" href="#default" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1000</span></span></code></pre></div><h4 id="inherited-from" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actioncd"><code>actionCd</code></a></p><hr><h3 id="actiondelay" tabindex="-1">actionDelay? <a class="header-anchor" href="#actiondelay" aria-label="Permalink to &quot;actionDelay?&quot;">​</a></h3><blockquote><p><strong>actionDelay</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>单位: 毫秒</p><p>延迟执行: 查询到节点-&gt;等待一段时间-&gt;再次查询到节点则执行对应 action</p><h4 id="inherited-from-1" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-1" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actiondelay"><code>actionDelay</code></a></p><hr><h3 id="quickfind" tabindex="-1">quickFind? <a class="header-anchor" href="#quickfind" aria-label="Permalink to &quot;quickFind?&quot;">​</a></h3><blockquote><p><strong>quickFind</strong>?: <code>boolean</code></p></blockquote><p>如果开启, 此规则下的所有 <code>末尾属性选择器</code>的<code>第一个属性选择表达式</code>符合下面的结构之一的选择器 将使用快速查找</p><ul><li>[id=&#39;abc&#39;]</li><li>[vid=&#39;abc&#39;]</li><li>[text=&#39;abc&#39;]</li><li>[text^=&#39;abc&#39;]</li><li>[text*=&#39;abc&#39;]</li><li>[text$=&#39;abc&#39;]</li></ul><p>比如 <code>A &gt; B + C[id=&#39;x&#39;][childCount=2]</code> 符合, 但 <code>A &gt; B + C[childCount=2][id=&#39;x&#39;]</code> 不符合</p><p>它的底层原理是 跳过手动遍历所有节点 直接调用 <a href="https://developer.android.google.cn/reference/android/view/accessibility/AccessibilityNodeInfo#findAccessibilityNodeInfosByViewId(java.lang.String)" target="_blank" rel="noreferrer">findAccessibilityNodeInfosByViewId</a> / <a href="https://developer.android.google.cn/reference/android/view/accessibility/AccessibilityNodeInfo#findAccessibilityNodeInfosByText(java.lang.String)" target="_blank" rel="noreferrer">findAccessibilityNodeInfosByText</a> 得到可匹配节点</p><p>大多数情况下都能查询到, 在少数某些复杂结构下, 即使目标节点存在, 快速查询也不一定查询到</p><p>比如 <a href="https://github.com/gkd-kit/subscription/blob/1ae87452d287b558f58f9c4e4448a3190e212ca1/src/apps/com.zidongdianji.ts#L26" target="_blank" rel="noreferrer">Image <code>&lt; &amp;#64;View + View &gt;</code>2 [text*=&#39;广告&#39;]</a> 虽然符合快速查询的条件但是使用 <code>findAccessibilityNodeInfosByText(&quot;广告&quot;)</code> 并不能查询到节点</p><p>它是优点是快速, 因为遍历所有节点是一个耗时行为, 虽然多数情况下这种耗时较低</p><p>但是在某些软件比如 哔哩哔哩 的开屏广告在这种耗时下延迟可达 1-2s, 这也是导致 <a href="https://github.com/gkd-kit/gkd/issues/60" target="_blank" rel="noreferrer">gkd-kit/gkd#60</a> 的原因</p><hr><p>v1.4.1 版本后生成的快照时将标识每个节点是否可 quickFind, 网页审查工具属性面板顶部会注明这个标识, 同时节点树如果字体的标粗体也表示这个节点可 quickFind</p><p><a href="https://i.gkd.li/import/13316168" target="_blank" rel="noreferrer"><img src="https://github.com/gkd-kit/subscription/assets/38517192/80cdbad1-fa8d-4415-81a1-cecaa7d69e33" alt="image"></a></p><h4 id="inherited-from-2" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-2" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#quickfind"><code>quickFind</code></a></p><hr><h3 id="matchdelay" tabindex="-1">matchDelay? <a class="header-anchor" href="#matchdelay" aria-label="Permalink to &quot;matchDelay?&quot;">​</a></h3><blockquote><p><strong>matchDelay</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>单位: 毫秒</p><p>匹配延迟</p><p>规则准备匹配/或被唤醒时, 等待一段时间, 使此规则参与查询屏幕节点</p><h4 id="inherited-from-3" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-3" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#matchdelay"><code>matchDelay</code></a></p><hr><h3 id="matchtime" tabindex="-1">matchTime? <a class="header-anchor" href="#matchtime" aria-label="Permalink to &quot;matchTime?&quot;">​</a></h3><blockquote><p><strong>matchTime</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>单位: 毫秒</p><p>规则匹配时间, 此规则参与查询屏幕节点时, 等待一段时间, 休眠此规则</p><p>例如某些应用的 开屏广告 的 activityId 容易误触/太广泛, 而开屏广告几乎只在应用切出来时出现, 设置一个有限匹配时间能避免后续的误触</p><h4 id="inherited-from-4" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-4" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#matchtime"><code>matchTime</code></a></p><hr><h3 id="actionmaximum" tabindex="-1">actionMaximum? <a class="header-anchor" href="#actionmaximum" aria-label="Permalink to &quot;actionMaximum?&quot;">​</a></h3><blockquote><p><strong>actionMaximum</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>最大执行次数</p><p>规则的 action 被执行的最大次数, 达到最大次数时, 休眠此规则</p><p>功能类似 matchTime, 适用于只需要执行一次的: 开屏广告/更新弹窗/青少年弹窗 一类规则</p><p>当规则准备匹配/或被唤醒时, 将重新计算次数</p><h4 id="inherited-from-5" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-5" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actionmaximum"><code>actionMaximum</code></a></p><hr><h3 id="resetmatch" tabindex="-1">resetMatch? <a class="header-anchor" href="#resetmatch" aria-label="Permalink to &quot;resetMatch?&quot;">​</a></h3><blockquote><p><strong>resetMatch</strong>?: <code>&quot;activity&quot;</code> | <code>&quot;app&quot;</code></p></blockquote><p>当规则因为 matchTime/actionMaximum 而休眠时, 如何唤醒此规则</p><h4 id="default-1" tabindex="-1">Default <a class="header-anchor" href="#default-1" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;activity&#39;</span></span></code></pre></div><h4 id="example" tabindex="-1">Example <a class="header-anchor" href="#example" aria-label="Permalink to &quot;Example&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;activity&#39;</span></span>
1
+ import{_ as e,c as a,o as r,V as o}from"./chunks/framework.IfA2_2T5.js";const f=JSON.parse('{"title":"RawAppGroup","description":"","frontmatter":{},"headers":[],"relativePath":"api/interfaces/RawAppGroup.md","filePath":"api/interfaces/RawAppGroup.md","lastUpdated":null}'),t={name:"api/interfaces/RawAppGroup.md"},i=o(`<h1 id="rawappgroup" tabindex="-1">RawAppGroup <a class="header-anchor" href="#rawappgroup" aria-label="Permalink to &quot;RawAppGroup&quot;">​</a></h1><p>应用规则组</p><h2 id="extends" tabindex="-1">Extends <a class="header-anchor" href="#extends" aria-label="Permalink to &quot;Extends&quot;">​</a></h2><ul><li><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawAppRuleProps.html"><code>RawAppRuleProps</code></a></li></ul><h2 id="properties" tabindex="-1">Properties <a class="header-anchor" href="#properties" aria-label="Permalink to &quot;Properties&quot;">​</a></h2><h3 id="rules" tabindex="-1">rules <a class="header-anchor" href="#rules" aria-label="Permalink to &quot;rules&quot;">​</a></h3><blockquote><p><strong>rules</strong>: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code> | <a href="./RawAppRule.html"><code>RawAppRule</code></a>&gt;</p></blockquote><p>应用规则组的规则列表, 支持多种类型</p><p>string =&gt; { matches: string }</p><p>string[] =&gt; { matches: string }[]</p><hr><h3 id="actioncd" tabindex="-1">actionCd? <a class="header-anchor" href="#actioncd" aria-label="Permalink to &quot;actionCd?&quot;">​</a></h3><blockquote><p><strong>actionCd</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>单位: 毫秒</p><p>当前规则的冷却时间, 或者执行 action 最小间隔</p><h4 id="default" tabindex="-1">Default <a class="header-anchor" href="#default" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1000</span></span></code></pre></div><h4 id="inherited-from" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actioncd"><code>actionCd</code></a></p><hr><h3 id="actiondelay" tabindex="-1">actionDelay? <a class="header-anchor" href="#actiondelay" aria-label="Permalink to &quot;actionDelay?&quot;">​</a></h3><blockquote><p><strong>actionDelay</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>单位: 毫秒</p><p>延迟执行: 查询到节点-&gt;等待一段时间-&gt;再次查询到节点则执行对应 action</p><h4 id="inherited-from-1" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-1" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actiondelay"><code>actionDelay</code></a></p><hr><h3 id="quickfind" tabindex="-1">quickFind? <a class="header-anchor" href="#quickfind" aria-label="Permalink to &quot;quickFind?&quot;">​</a></h3><blockquote><p><strong>quickFind</strong>?: <code>boolean</code></p></blockquote><p>如果开启, 此规则下的所有 <code>末尾属性选择器</code>的<code>第一个属性选择表达式</code>符合下面的结构之一的选择器 将使用快速查找</p><ul><li>[id=&#39;abc&#39;]</li><li>[vid=&#39;abc&#39;]</li><li>[text=&#39;abc&#39;]</li><li>[text^=&#39;abc&#39;]</li><li>[text*=&#39;abc&#39;]</li><li>[text$=&#39;abc&#39;]</li></ul><p>比如 <code>A &gt; B + C[id=&#39;x&#39;][childCount=2]</code> 符合, 但 <code>A &gt; B + C[childCount=2][id=&#39;x&#39;]</code> 不符合</p><p>它的底层原理是 跳过手动遍历所有节点 直接调用 <a href="https://developer.android.google.cn/reference/android/view/accessibility/AccessibilityNodeInfo#findAccessibilityNodeInfosByViewId(java.lang.String)" target="_blank" rel="noreferrer">findAccessibilityNodeInfosByViewId</a> / <a href="https://developer.android.google.cn/reference/android/view/accessibility/AccessibilityNodeInfo#findAccessibilityNodeInfosByText(java.lang.String)" target="_blank" rel="noreferrer">findAccessibilityNodeInfosByText</a> 得到可匹配节点</p><p>大多数情况下都能查询到, 在少数某些复杂结构下, 即使目标节点存在, 快速查询也不一定查询到</p><p>比如 <a href="https://github.com/gkd-kit/subscription/blob/1ae87452d287b558f58f9c4e4448a3190e212ca1/src/apps/com.zidongdianji.ts#L26" target="_blank" rel="noreferrer">Image <code>&lt; &amp;#64;View + View &gt;</code>2 [text*=&#39;广告&#39;]</a> 虽然符合快速查询的条件但是使用 <code>findAccessibilityNodeInfosByText(&quot;广告&quot;)</code> 并不能查询到节点</p><p>它是优点是快速, 因为遍历所有节点是一个耗时行为, 虽然多数情况下这种耗时较低</p><p>但是在某些软件比如 哔哩哔哩 的开屏广告在这种耗时下延迟可达 1-2s, 这也是导致 <a href="https://github.com/gkd-kit/gkd/issues/60" target="_blank" rel="noreferrer">gkd-kit/gkd#60</a> 的原因</p><hr><p>v1.4.1 版本后生成的快照时将标识每个节点是否可 quickFind, 网页审查工具属性面板顶部会注明这个标识, 同时节点树如果字体的标粗体也表示这个节点可 quickFind</p><p><a href="https://i.gkd.li/import/13316168" target="_blank" rel="noreferrer"><img src="https://github.com/gkd-kit/subscription/assets/38517192/80cdbad1-fa8d-4415-81a1-cecaa7d69e33" alt="image"></a></p><h4 id="inherited-from-2" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-2" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#quickfind"><code>quickFind</code></a></p><hr><h3 id="matchdelay" tabindex="-1">matchDelay? <a class="header-anchor" href="#matchdelay" aria-label="Permalink to &quot;matchDelay?&quot;">​</a></h3><blockquote><p><strong>matchDelay</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>单位: 毫秒</p><p>匹配延迟</p><p>规则准备匹配/或被唤醒时, 等待一段时间, 使此规则参与查询屏幕节点</p><h4 id="inherited-from-3" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-3" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#matchdelay"><code>matchDelay</code></a></p><hr><h3 id="matchtime" tabindex="-1">matchTime? <a class="header-anchor" href="#matchtime" aria-label="Permalink to &quot;matchTime?&quot;">​</a></h3><blockquote><p><strong>matchTime</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>单位: 毫秒</p><p>规则匹配时间, 此规则参与查询屏幕节点时, 等待一段时间, 休眠此规则</p><p>例如某些应用的 开屏广告 的 activityId 容易误触/太广泛, 而开屏广告几乎只在应用切出来时出现, 设置一个有限匹配时间能避免后续的误触</p><h4 id="inherited-from-4" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-4" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#matchtime"><code>matchTime</code></a></p><hr><h3 id="actionmaximum" tabindex="-1">actionMaximum? <a class="header-anchor" href="#actionmaximum" aria-label="Permalink to &quot;actionMaximum?&quot;">​</a></h3><blockquote><p><strong>actionMaximum</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>最大执行次数</p><p>规则的 action 被执行的最大次数, 达到最大次数时, 休眠此规则</p><p>功能类似 matchTime, 适用于只需要执行一次的: 开屏广告/更新弹窗/青少年弹窗 一类规则</p><p>当规则准备匹配/或被唤醒时, 将重新计算次数</p><h4 id="inherited-from-5" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-5" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actionmaximum"><code>actionMaximum</code></a></p><hr><h3 id="resetmatch" tabindex="-1">resetMatch? <a class="header-anchor" href="#resetmatch" aria-label="Permalink to &quot;resetMatch?&quot;">​</a></h3><blockquote><p><strong>resetMatch</strong>?: <code>&quot;activity&quot;</code> | <code>&quot;app&quot;</code></p></blockquote><p>当规则因为 matchTime/actionMaximum 而休眠时, 如何唤醒此规则</p><h4 id="default-1" tabindex="-1">Default <a class="header-anchor" href="#default-1" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;activity&#39;</span></span></code></pre></div><h4 id="example" tabindex="-1">Example <a class="header-anchor" href="#example" aria-label="Permalink to &quot;Example&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;activity&#39;</span></span>
2
2
  <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 当 activity 刷新时, 唤醒规则</span></span>
3
3
  <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 刷新 activity 并不代表 activityId 变化</span></span>
4
4
  <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 如 哔哩哔哩视频播放页 底部点击推荐视频 进入另一个 视频播放页, 进入了新 activity 但是 activityId 并没有变化</span></span></code></pre></div><h4 id="example-1" tabindex="-1">Example <a class="header-anchor" href="#example-1" aria-label="Permalink to &quot;Example&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;app&#39;</span></span>
5
- <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 重新进入 app 时, 唤醒规则</span></span></code></pre></div><h4 id="inherited-from-6" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-6" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#resetmatch"><code>resetMatch</code></a></p><hr><h3 id="actioncdkey" tabindex="-1">actionCdKey? <a class="header-anchor" href="#actioncdkey" aria-label="Permalink to &quot;actionCdKey?&quot;">​</a></h3><blockquote><p><strong>actionCdKey</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>与这个 key 的 rule 共享 cd</p><p>比如开屏广告可能需要多个 rule 去匹配, 当一个 rule 触发时, 其它 rule 的触发是无意义的</p><p>如果你对这个 key 的 rule 设置 actionCd=3000, 那么当这个 rule 和 本 rule 触发任意一个时, 在 3000毫秒 内两个 rule 都将进入 cd</p><h4 id="inherited-from-7" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-7" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actioncdkey"><code>actionCdKey</code></a></p><hr><h3 id="actionmaximumkey" tabindex="-1">actionMaximumKey? <a class="header-anchor" href="#actionmaximumkey" aria-label="Permalink to &quot;actionMaximumKey?&quot;">​</a></h3><blockquote><p><strong>actionMaximumKey</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>与这个 key 的 rule 共享次数</p><p>比如开屏广告可能需要多个 rule 去匹配, 当一个 rule 触发时, 其它 rule 的触发是无意义的</p><p>如果你对这个 key 的 rule 设置 actionMaximum=1, 那么当这个 rule 和 本 rule 触发任意一个时, 两个 rule 都将进入休眠</p><h4 id="inherited-from-8" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-8" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actionmaximumkey"><code>actionMaximumKey</code></a></p><hr><h3 id="order" tabindex="-1">order? <a class="header-anchor" href="#order" aria-label="Permalink to &quot;order?&quot;">​</a></h3><blockquote><p><strong>order</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>规则参与匹配的顺序, 数字越小越先匹配</p><p>如果两个规则 order 相同, 按照 groups 中的数组顺序匹配, app 类型规则顺序优先于 global 类型规则</p><p>属于不同订阅的规则按照订阅列表中顺序匹配, 长按订阅卡片可以拖动排序</p><h4 id="default-2" tabindex="-1">Default <a class="header-anchor" href="#default-2" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">0</span></span></code></pre></div><h4 id="inherited-from-9" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-9" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#order"><code>order</code></a></p><hr><h3 id="snapshoturls" tabindex="-1">snapshotUrls? <a class="header-anchor" href="#snapshoturls" aria-label="Permalink to &quot;snapshotUrls?&quot;">​</a></h3><blockquote><p><strong>snapshotUrls</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>当前 规则/规则组 的快照链接, 增强订阅可维护性</p><h4 id="inherited-from-10" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-10" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#snapshoturls"><code>snapshotUrls</code></a></p><hr><h3 id="exampleurls" tabindex="-1">exampleUrls? <a class="header-anchor" href="#exampleurls" aria-label="Permalink to &quot;exampleUrls?&quot;">​</a></h3><blockquote><p><strong>exampleUrls</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>当前 规则/规则组 的规则在手机上的运行示例, 支持 jpg/png/webp/gif</p><p>如果规则是多个规则组合起来的, 可以更好看懂规则到底在干啥, 比如 点击关闭按钮-选择关闭原因-确认关闭 这种广告用 gif 看着更清楚在干啥</p><h4 id="inherited-from-11" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-11" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#exampleurls"><code>exampleUrls</code></a></p><hr><h3 id="key" tabindex="-1">key <a class="header-anchor" href="#key" aria-label="Permalink to &quot;key&quot;">​</a></h3><blockquote><p><strong>key</strong>: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>当前规则组在列表中的唯一标识</p><p>也是客户端禁用/启用此规则组的依据</p><p>设置后不可更改, 否则造成客户端启用/禁用错乱</p><p>key 没有顺序大小之分, 可以是任意数字</p><h4 id="inherited-from-12" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-12" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#key"><code>key</code></a></p><hr><h3 id="name" tabindex="-1">name <a class="header-anchor" href="#name" aria-label="Permalink to &quot;name&quot;">​</a></h3><blockquote><p><strong>name</strong>: <code>string</code></p></blockquote><p>规则组名称</p><h4 id="inherited-from-13" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-13" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#name"><code>name</code></a></p><hr><h3 id="desc" tabindex="-1">desc? <a class="header-anchor" href="#desc" aria-label="Permalink to &quot;desc?&quot;">​</a></h3><blockquote><p><strong>desc</strong>?: <code>string</code></p></blockquote><p>规则组描述</p><h4 id="inherited-from-14" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-14" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#desc"><code>desc</code></a></p><hr><h3 id="enable" tabindex="-1">enable? <a class="header-anchor" href="#enable" aria-label="Permalink to &quot;enable?&quot;">​</a></h3><blockquote><p><strong>enable</strong>?: <code>boolean</code></p></blockquote><p>控制规则默认情况下是启用还是禁用</p><h4 id="default-3" tabindex="-1">Default <a class="header-anchor" href="#default-3" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">true</span></span></code></pre></div><h4 id="inherited-from-15" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-15" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#enable"><code>enable</code></a></p><hr><h3 id="scopekeys" tabindex="-1">scopeKeys? <a class="header-anchor" href="#scopekeys" aria-label="Permalink to &quot;scopeKeys?&quot;">​</a></h3><blockquote><p><strong>scopeKeys</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<a href="./../type-aliases/Integer.html"><code>Integer</code></a>&gt;</p></blockquote><p>其它 group 的 key, 允许将目标组的所有 rule 添加到当前组的作用域</p><p>假设 group1{key=1} 有一个 rule1{key=11}, group2{key=2} 有 rule2{key=22}, rule3{key=23}</p><p>如果 group1 的 scopeKeys=[2] 并且 group2 没有被禁用, 那么 rule1 的 preKeys/actionCdKey/actionMaximumKey 可以是 11/22/23</p><p>如果存在相同 key 的 rule, 优先使用本组的 rule, 其次按 scopeKeys 的顺序查找其它组的 rule</p><h4 id="inherited-from-16" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-16" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#scopekeys"><code>scopeKeys</code></a></p><hr><h3 id="activityids" tabindex="-1">activityIds? <a class="header-anchor" href="#activityids" aria-label="Permalink to &quot;activityIds?&quot;">​</a></h3><blockquote><p><strong>activityIds</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>如果 设备界面Id startWith activityIds 的任意一项, 则匹配</p><p>如果要匹配所有界面: <code>undefined</code> (不填写) 或者 <code>[]</code> (避免使用上级属性)</p><h4 id="inherited-from-17" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-17" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawAppRuleProps.html"><code>RawAppRuleProps</code></a>.<a href="./RawAppRuleProps.html#activityids"><code>activityIds</code></a></p><hr><h3 id="excludeactivityids" tabindex="-1">excludeActivityIds? <a class="header-anchor" href="#excludeactivityids" aria-label="Permalink to &quot;excludeActivityIds?&quot;">​</a></h3><blockquote><p><strong>excludeActivityIds</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>如果 设备界面Id startWith excludeActivityIds 的任意一项, 则排除匹配</p><p>优先级高于 activityIds</p><h4 id="inherited-from-18" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-18" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawAppRuleProps.html"><code>RawAppRuleProps</code></a>.<a href="./RawAppRuleProps.html#excludeactivityids"><code>excludeActivityIds</code></a></p>`,169),s=[i];function d(h,l,c,p,n,u){return r(),a("div",null,s)}const b=e(t,[["render",d]]);export{f as __pageData,b as default};
5
+ <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 重新进入 app 时, 唤醒规则</span></span></code></pre></div><h4 id="inherited-from-6" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-6" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#resetmatch"><code>resetMatch</code></a></p><hr><h3 id="actioncdkey" tabindex="-1">actionCdKey? <a class="header-anchor" href="#actioncdkey" aria-label="Permalink to &quot;actionCdKey?&quot;">​</a></h3><blockquote><p><strong>actionCdKey</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>与这个 key 的 rule 共享 cd</p><p>比如开屏广告可能需要多个 rule 去匹配, 当一个 rule 触发时, 其它 rule 的触发是无意义的</p><p>如果你对这个 key 的 rule 设置 actionCd=3000, 那么当这个 rule 和 本 rule 触发任意一个时, 在 3000毫秒 内两个 rule 都将进入 cd</p><h4 id="inherited-from-7" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-7" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actioncdkey"><code>actionCdKey</code></a></p><hr><h3 id="actionmaximumkey" tabindex="-1">actionMaximumKey? <a class="header-anchor" href="#actionmaximumkey" aria-label="Permalink to &quot;actionMaximumKey?&quot;">​</a></h3><blockquote><p><strong>actionMaximumKey</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>与这个 key 的 rule 共享次数</p><p>比如开屏广告可能需要多个 rule 去匹配, 当一个 rule 触发时, 其它 rule 的触发是无意义的</p><p>如果你对这个 key 的 rule 设置 actionMaximum=1, 那么当这个 rule 和 本 rule 触发任意一个时, 两个 rule 都将进入休眠</p><h4 id="inherited-from-8" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-8" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actionmaximumkey"><code>actionMaximumKey</code></a></p><hr><h3 id="order" tabindex="-1">order? <a class="header-anchor" href="#order" aria-label="Permalink to &quot;order?&quot;">​</a></h3><blockquote><p><strong>order</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>规则参与匹配的顺序, 数字越小越先匹配</p><p>如果两个规则 order 相同, 按照 groups 中的数组顺序匹配, app 类型规则顺序优先于 global 类型规则</p><p>属于不同订阅的规则按照订阅列表中顺序匹配, 长按订阅卡片可以拖动排序</p><h4 id="default-2" tabindex="-1">Default <a class="header-anchor" href="#default-2" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">0</span></span></code></pre></div><h4 id="inherited-from-9" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-9" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#order"><code>order</code></a></p><hr><h3 id="snapshoturls" tabindex="-1">snapshotUrls? <a class="header-anchor" href="#snapshoturls" aria-label="Permalink to &quot;snapshotUrls?&quot;">​</a></h3><blockquote><p><strong>snapshotUrls</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>当前 规则/规则组 的快照链接, 增强订阅可维护性</p><h4 id="inherited-from-10" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-10" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#snapshoturls"><code>snapshotUrls</code></a></p><hr><h3 id="exampleurls" tabindex="-1">exampleUrls? <a class="header-anchor" href="#exampleurls" aria-label="Permalink to &quot;exampleUrls?&quot;">​</a></h3><blockquote><p><strong>exampleUrls</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>当前 规则/规则组 的规则在手机上的运行示例, 支持 jpg/png/webp/gif</p><p>如果规则是多个规则组合起来的, 可以更好看懂规则到底在干啥, 比如 点击关闭按钮-选择关闭原因-确认关闭 这种广告用 gif 看着更清楚在干啥</p><h4 id="inherited-from-11" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-11" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#exampleurls"><code>exampleUrls</code></a></p><hr><h3 id="key" tabindex="-1">key <a class="header-anchor" href="#key" aria-label="Permalink to &quot;key&quot;">​</a></h3><blockquote><p><strong>key</strong>: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>当前规则组在列表中的唯一标识</p><p>也是客户端禁用/启用此规则组的依据</p><p>设置后不可更改, 否则造成客户端启用/禁用错乱</p><p>key 没有顺序大小之分, 可以是任意数字</p><h4 id="inherited-from-12" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-12" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#key"><code>key</code></a></p><hr><h3 id="name" tabindex="-1">name <a class="header-anchor" href="#name" aria-label="Permalink to &quot;name&quot;">​</a></h3><blockquote><p><strong>name</strong>: <code>string</code></p></blockquote><p>规则组名称</p><h4 id="inherited-from-13" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-13" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#name"><code>name</code></a></p><hr><h3 id="desc" tabindex="-1">desc? <a class="header-anchor" href="#desc" aria-label="Permalink to &quot;desc?&quot;">​</a></h3><blockquote><p><strong>desc</strong>?: <code>string</code></p></blockquote><p>规则组描述</p><h4 id="inherited-from-14" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-14" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#desc"><code>desc</code></a></p><hr><h3 id="enable" tabindex="-1">enable? <a class="header-anchor" href="#enable" aria-label="Permalink to &quot;enable?&quot;">​</a></h3><blockquote><p><strong>enable</strong>?: <code>boolean</code></p></blockquote><p>控制规则默认情况下是启用还是禁用</p><h4 id="default-3" tabindex="-1">Default <a class="header-anchor" href="#default-3" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">true</span></span></code></pre></div><h4 id="inherited-from-15" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-15" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#enable"><code>enable</code></a></p><hr><h3 id="scopekeys" tabindex="-1">scopeKeys? <a class="header-anchor" href="#scopekeys" aria-label="Permalink to &quot;scopeKeys?&quot;">​</a></h3><blockquote><p><strong>scopeKeys</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<a href="./../type-aliases/Integer.html"><code>Integer</code></a>&gt;</p></blockquote><p>其它 group 的 key, 允许将目标组的所有 rule 添加到当前组的作用域</p><p>假设 group1{key=1} 有一个 rule1{key=11}, group2{key=2} 有 rule2{key=22}, rule3{key=23}</p><p>如果 group1 的 scopeKeys=[2] 并且 group2 没有被禁用, 那么 rule1 的 preKeys/actionCdKey/actionMaximumKey 可以是 11/22/23</p><p>如果存在相同 key 的 rule, 优先使用本组的 rule, 其次按 scopeKeys 的顺序查找其它组的 rule</p><h4 id="inherited-from-16" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-16" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#scopekeys"><code>scopeKeys</code></a></p><hr><h3 id="activityids" tabindex="-1">activityIds? <a class="header-anchor" href="#activityids" aria-label="Permalink to &quot;activityIds?&quot;">​</a></h3><blockquote><p><strong>activityIds</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>如果 设备界面Id startWith activityIds 的任意一项, 则匹配</p><p>如果要匹配所有界面: <code>undefined</code> (不填写) 或者 <code>[]</code> (避免使用上级属性)</p><h4 id="inherited-from-17" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-17" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawAppRuleProps.html"><code>RawAppRuleProps</code></a>.<a href="./RawAppRuleProps.html#activityids"><code>activityIds</code></a></p><hr><h3 id="excludeactivityids" tabindex="-1">excludeActivityIds? <a class="header-anchor" href="#excludeactivityids" aria-label="Permalink to &quot;excludeActivityIds?&quot;">​</a></h3><blockquote><p><strong>excludeActivityIds</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>如果 设备界面Id startWith excludeActivityIds 的任意一项, 则排除匹配</p><p>优先级高于 activityIds</p><h4 id="inherited-from-18" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-18" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawAppRuleProps.html"><code>RawAppRuleProps</code></a>.<a href="./RawAppRuleProps.html#excludeactivityids"><code>excludeActivityIds</code></a></p>`,170),s=[i];function d(h,l,c,p,n,u){return r(),a("div",null,s)}const b=e(t,[["render",d]]);export{f as __pageData,b as default};
@@ -1 +1 @@
1
- import{_ as e,c as a,o as r,V as o}from"./chunks/framework.IfA2_2T5.js";const f=JSON.parse('{"title":"RawAppGroup","description":"","frontmatter":{},"headers":[],"relativePath":"api/interfaces/RawAppGroup.md","filePath":"api/interfaces/RawAppGroup.md","lastUpdated":null}'),t={name:"api/interfaces/RawAppGroup.md"},i=o("",169),s=[i];function d(h,l,c,p,n,u){return r(),a("div",null,s)}const b=e(t,[["render",d]]);export{f as __pageData,b as default};
1
+ import{_ as e,c as a,o as r,V as o}from"./chunks/framework.IfA2_2T5.js";const f=JSON.parse('{"title":"RawAppGroup","description":"","frontmatter":{},"headers":[],"relativePath":"api/interfaces/RawAppGroup.md","filePath":"api/interfaces/RawAppGroup.md","lastUpdated":null}'),t={name:"api/interfaces/RawAppGroup.md"},i=o("",170),s=[i];function d(h,l,c,p,n,u){return r(),a("div",null,s)}const b=e(t,[["render",d]]);export{f as __pageData,b as default};
@@ -1,5 +1,5 @@
1
- import{_ as e,c as a,o,V as r}from"./chunks/framework.IfA2_2T5.js";const f=JSON.parse('{"title":"RawGlobalGroup","description":"","frontmatter":{},"headers":[],"relativePath":"api/interfaces/RawGlobalGroup.md","filePath":"api/interfaces/RawGlobalGroup.md","lastUpdated":null}'),t={name:"api/interfaces/RawGlobalGroup.md"},i=r(`<h1 id="rawglobalgroup" tabindex="-1">RawGlobalGroup <a class="header-anchor" href="#rawglobalgroup" aria-label="Permalink to &quot;RawGlobalGroup&quot;">​</a></h1><p>全局规则组</p><h2 id="extends" tabindex="-1">Extends <a class="header-anchor" href="#extends" aria-label="Permalink to &quot;Extends&quot;">​</a></h2><ul><li><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGlobalRuleProps.html"><code>RawGlobalRuleProps</code></a></li></ul><h2 id="properties" tabindex="-1">Properties <a class="header-anchor" href="#properties" aria-label="Permalink to &quot;Properties&quot;">​</a></h2><h3 id="rules" tabindex="-1">rules <a class="header-anchor" href="#rules" aria-label="Permalink to &quot;rules&quot;">​</a></h3><blockquote><p><strong>rules</strong>: <a href="./RawGlobalRule.html"><code>RawGlobalRule</code></a>[]</p></blockquote><hr><h3 id="actioncd" tabindex="-1">actionCd? <a class="header-anchor" href="#actioncd" aria-label="Permalink to &quot;actionCd?&quot;">​</a></h3><blockquote><p><strong>actionCd</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>单位: 毫秒</p><p>当前规则的冷却时间, 或者执行 action 最小间隔</p><h4 id="default" tabindex="-1">Default <a class="header-anchor" href="#default" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1000</span></span></code></pre></div><h4 id="inherited-from" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actioncd"><code>actionCd</code></a></p><hr><h3 id="actiondelay" tabindex="-1">actionDelay? <a class="header-anchor" href="#actiondelay" aria-label="Permalink to &quot;actionDelay?&quot;">​</a></h3><blockquote><p><strong>actionDelay</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>单位: 毫秒</p><p>延迟执行: 查询到节点-&gt;等待一段时间-&gt;再次查询到节点则执行对应 action</p><h4 id="inherited-from-1" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-1" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actiondelay"><code>actionDelay</code></a></p><hr><h3 id="quickfind" tabindex="-1">quickFind? <a class="header-anchor" href="#quickfind" aria-label="Permalink to &quot;quickFind?&quot;">​</a></h3><blockquote><p><strong>quickFind</strong>?: <code>boolean</code></p></blockquote><p>如果开启, 此规则下的所有 <code>末尾属性选择器</code>的<code>第一个属性选择表达式</code>符合下面的结构之一的选择器 将使用快速查找</p><ul><li>[id=&#39;abc&#39;]</li><li>[vid=&#39;abc&#39;]</li><li>[text=&#39;abc&#39;]</li><li>[text^=&#39;abc&#39;]</li><li>[text*=&#39;abc&#39;]</li><li>[text$=&#39;abc&#39;]</li></ul><p>比如 <code>A &gt; B + C[id=&#39;x&#39;][childCount=2]</code> 符合, 但 <code>A &gt; B + C[childCount=2][id=&#39;x&#39;]</code> 不符合</p><p>它的底层原理是 跳过手动遍历所有节点 直接调用 <a href="https://developer.android.google.cn/reference/android/view/accessibility/AccessibilityNodeInfo#findAccessibilityNodeInfosByViewId(java.lang.String)" target="_blank" rel="noreferrer">findAccessibilityNodeInfosByViewId</a> / <a href="https://developer.android.google.cn/reference/android/view/accessibility/AccessibilityNodeInfo#findAccessibilityNodeInfosByText(java.lang.String)" target="_blank" rel="noreferrer">findAccessibilityNodeInfosByText</a> 得到可匹配节点</p><p>大多数情况下都能查询到, 在少数某些复杂结构下, 即使目标节点存在, 快速查询也不一定查询到</p><p>比如 <a href="https://github.com/gkd-kit/subscription/blob/1ae87452d287b558f58f9c4e4448a3190e212ca1/src/apps/com.zidongdianji.ts#L26" target="_blank" rel="noreferrer">Image <code>&lt; &amp;#64;View + View &gt;</code>2 [text*=&#39;广告&#39;]</a> 虽然符合快速查询的条件但是使用 <code>findAccessibilityNodeInfosByText(&quot;广告&quot;)</code> 并不能查询到节点</p><p>它是优点是快速, 因为遍历所有节点是一个耗时行为, 虽然多数情况下这种耗时较低</p><p>但是在某些软件比如 哔哩哔哩 的开屏广告在这种耗时下延迟可达 1-2s, 这也是导致 <a href="https://github.com/gkd-kit/gkd/issues/60" target="_blank" rel="noreferrer">gkd-kit/gkd#60</a> 的原因</p><hr><p>v1.4.1 版本后生成的快照时将标识每个节点是否可 quickFind, 网页审查工具属性面板顶部会注明这个标识, 同时节点树如果字体的标粗体也表示这个节点可 quickFind</p><p><a href="https://i.gkd.li/import/13316168" target="_blank" rel="noreferrer"><img src="https://github.com/gkd-kit/subscription/assets/38517192/80cdbad1-fa8d-4415-81a1-cecaa7d69e33" alt="image"></a></p><h4 id="inherited-from-2" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-2" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#quickfind"><code>quickFind</code></a></p><hr><h3 id="matchdelay" tabindex="-1">matchDelay? <a class="header-anchor" href="#matchdelay" aria-label="Permalink to &quot;matchDelay?&quot;">​</a></h3><blockquote><p><strong>matchDelay</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>单位: 毫秒</p><p>匹配延迟</p><p>规则准备匹配/或被唤醒时, 等待一段时间, 使此规则参与查询屏幕节点</p><h4 id="inherited-from-3" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-3" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#matchdelay"><code>matchDelay</code></a></p><hr><h3 id="matchtime" tabindex="-1">matchTime? <a class="header-anchor" href="#matchtime" aria-label="Permalink to &quot;matchTime?&quot;">​</a></h3><blockquote><p><strong>matchTime</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>单位: 毫秒</p><p>规则匹配时间, 此规则参与查询屏幕节点时, 等待一段时间, 休眠此规则</p><p>例如某些应用的 开屏广告 的 activityId 容易误触/太广泛, 而开屏广告几乎只在应用切出来时出现, 设置一个有限匹配时间能避免后续的误触</p><h4 id="inherited-from-4" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-4" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#matchtime"><code>matchTime</code></a></p><hr><h3 id="actionmaximum" tabindex="-1">actionMaximum? <a class="header-anchor" href="#actionmaximum" aria-label="Permalink to &quot;actionMaximum?&quot;">​</a></h3><blockquote><p><strong>actionMaximum</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>最大执行次数</p><p>规则的 action 被执行的最大次数, 达到最大次数时, 休眠此规则</p><p>功能类似 matchTime, 适用于只需要执行一次的: 开屏广告/更新弹窗/青少年弹窗 一类规则</p><p>当规则准备匹配/或被唤醒时, 将重新计算次数</p><h4 id="inherited-from-5" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-5" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actionmaximum"><code>actionMaximum</code></a></p><hr><h3 id="resetmatch" tabindex="-1">resetMatch? <a class="header-anchor" href="#resetmatch" aria-label="Permalink to &quot;resetMatch?&quot;">​</a></h3><blockquote><p><strong>resetMatch</strong>?: <code>&quot;activity&quot;</code> | <code>&quot;app&quot;</code></p></blockquote><p>当规则因为 matchTime/actionMaximum 而休眠时, 如何唤醒此规则</p><h4 id="default-1" tabindex="-1">Default <a class="header-anchor" href="#default-1" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;activity&#39;</span></span></code></pre></div><h4 id="example" tabindex="-1">Example <a class="header-anchor" href="#example" aria-label="Permalink to &quot;Example&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;activity&#39;</span></span>
1
+ import{_ as e,c as a,o,V as r}from"./chunks/framework.IfA2_2T5.js";const f=JSON.parse('{"title":"RawGlobalGroup","description":"","frontmatter":{},"headers":[],"relativePath":"api/interfaces/RawGlobalGroup.md","filePath":"api/interfaces/RawGlobalGroup.md","lastUpdated":null}'),t={name:"api/interfaces/RawGlobalGroup.md"},i=r(`<h1 id="rawglobalgroup" tabindex="-1">RawGlobalGroup <a class="header-anchor" href="#rawglobalgroup" aria-label="Permalink to &quot;RawGlobalGroup&quot;">​</a></h1><p>全局规则组</p><h2 id="extends" tabindex="-1">Extends <a class="header-anchor" href="#extends" aria-label="Permalink to &quot;Extends&quot;">​</a></h2><ul><li><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGlobalRuleProps.html"><code>RawGlobalRuleProps</code></a></li></ul><h2 id="properties" tabindex="-1">Properties <a class="header-anchor" href="#properties" aria-label="Permalink to &quot;Properties&quot;">​</a></h2><h3 id="rules" tabindex="-1">rules <a class="header-anchor" href="#rules" aria-label="Permalink to &quot;rules&quot;">​</a></h3><blockquote><p><strong>rules</strong>: <a href="./RawGlobalRule.html"><code>RawGlobalRule</code></a>[]</p></blockquote><p>全局规则组的规则列表</p><hr><h3 id="actioncd" tabindex="-1">actionCd? <a class="header-anchor" href="#actioncd" aria-label="Permalink to &quot;actionCd?&quot;">​</a></h3><blockquote><p><strong>actionCd</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>单位: 毫秒</p><p>当前规则的冷却时间, 或者执行 action 最小间隔</p><h4 id="default" tabindex="-1">Default <a class="header-anchor" href="#default" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1000</span></span></code></pre></div><h4 id="inherited-from" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actioncd"><code>actionCd</code></a></p><hr><h3 id="actiondelay" tabindex="-1">actionDelay? <a class="header-anchor" href="#actiondelay" aria-label="Permalink to &quot;actionDelay?&quot;">​</a></h3><blockquote><p><strong>actionDelay</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>单位: 毫秒</p><p>延迟执行: 查询到节点-&gt;等待一段时间-&gt;再次查询到节点则执行对应 action</p><h4 id="inherited-from-1" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-1" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actiondelay"><code>actionDelay</code></a></p><hr><h3 id="quickfind" tabindex="-1">quickFind? <a class="header-anchor" href="#quickfind" aria-label="Permalink to &quot;quickFind?&quot;">​</a></h3><blockquote><p><strong>quickFind</strong>?: <code>boolean</code></p></blockquote><p>如果开启, 此规则下的所有 <code>末尾属性选择器</code>的<code>第一个属性选择表达式</code>符合下面的结构之一的选择器 将使用快速查找</p><ul><li>[id=&#39;abc&#39;]</li><li>[vid=&#39;abc&#39;]</li><li>[text=&#39;abc&#39;]</li><li>[text^=&#39;abc&#39;]</li><li>[text*=&#39;abc&#39;]</li><li>[text$=&#39;abc&#39;]</li></ul><p>比如 <code>A &gt; B + C[id=&#39;x&#39;][childCount=2]</code> 符合, 但 <code>A &gt; B + C[childCount=2][id=&#39;x&#39;]</code> 不符合</p><p>它的底层原理是 跳过手动遍历所有节点 直接调用 <a href="https://developer.android.google.cn/reference/android/view/accessibility/AccessibilityNodeInfo#findAccessibilityNodeInfosByViewId(java.lang.String)" target="_blank" rel="noreferrer">findAccessibilityNodeInfosByViewId</a> / <a href="https://developer.android.google.cn/reference/android/view/accessibility/AccessibilityNodeInfo#findAccessibilityNodeInfosByText(java.lang.String)" target="_blank" rel="noreferrer">findAccessibilityNodeInfosByText</a> 得到可匹配节点</p><p>大多数情况下都能查询到, 在少数某些复杂结构下, 即使目标节点存在, 快速查询也不一定查询到</p><p>比如 <a href="https://github.com/gkd-kit/subscription/blob/1ae87452d287b558f58f9c4e4448a3190e212ca1/src/apps/com.zidongdianji.ts#L26" target="_blank" rel="noreferrer">Image <code>&lt; &amp;#64;View + View &gt;</code>2 [text*=&#39;广告&#39;]</a> 虽然符合快速查询的条件但是使用 <code>findAccessibilityNodeInfosByText(&quot;广告&quot;)</code> 并不能查询到节点</p><p>它是优点是快速, 因为遍历所有节点是一个耗时行为, 虽然多数情况下这种耗时较低</p><p>但是在某些软件比如 哔哩哔哩 的开屏广告在这种耗时下延迟可达 1-2s, 这也是导致 <a href="https://github.com/gkd-kit/gkd/issues/60" target="_blank" rel="noreferrer">gkd-kit/gkd#60</a> 的原因</p><hr><p>v1.4.1 版本后生成的快照时将标识每个节点是否可 quickFind, 网页审查工具属性面板顶部会注明这个标识, 同时节点树如果字体的标粗体也表示这个节点可 quickFind</p><p><a href="https://i.gkd.li/import/13316168" target="_blank" rel="noreferrer"><img src="https://github.com/gkd-kit/subscription/assets/38517192/80cdbad1-fa8d-4415-81a1-cecaa7d69e33" alt="image"></a></p><h4 id="inherited-from-2" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-2" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#quickfind"><code>quickFind</code></a></p><hr><h3 id="matchdelay" tabindex="-1">matchDelay? <a class="header-anchor" href="#matchdelay" aria-label="Permalink to &quot;matchDelay?&quot;">​</a></h3><blockquote><p><strong>matchDelay</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>单位: 毫秒</p><p>匹配延迟</p><p>规则准备匹配/或被唤醒时, 等待一段时间, 使此规则参与查询屏幕节点</p><h4 id="inherited-from-3" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-3" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#matchdelay"><code>matchDelay</code></a></p><hr><h3 id="matchtime" tabindex="-1">matchTime? <a class="header-anchor" href="#matchtime" aria-label="Permalink to &quot;matchTime?&quot;">​</a></h3><blockquote><p><strong>matchTime</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>单位: 毫秒</p><p>规则匹配时间, 此规则参与查询屏幕节点时, 等待一段时间, 休眠此规则</p><p>例如某些应用的 开屏广告 的 activityId 容易误触/太广泛, 而开屏广告几乎只在应用切出来时出现, 设置一个有限匹配时间能避免后续的误触</p><h4 id="inherited-from-4" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-4" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#matchtime"><code>matchTime</code></a></p><hr><h3 id="actionmaximum" tabindex="-1">actionMaximum? <a class="header-anchor" href="#actionmaximum" aria-label="Permalink to &quot;actionMaximum?&quot;">​</a></h3><blockquote><p><strong>actionMaximum</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>最大执行次数</p><p>规则的 action 被执行的最大次数, 达到最大次数时, 休眠此规则</p><p>功能类似 matchTime, 适用于只需要执行一次的: 开屏广告/更新弹窗/青少年弹窗 一类规则</p><p>当规则准备匹配/或被唤醒时, 将重新计算次数</p><h4 id="inherited-from-5" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-5" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actionmaximum"><code>actionMaximum</code></a></p><hr><h3 id="resetmatch" tabindex="-1">resetMatch? <a class="header-anchor" href="#resetmatch" aria-label="Permalink to &quot;resetMatch?&quot;">​</a></h3><blockquote><p><strong>resetMatch</strong>?: <code>&quot;activity&quot;</code> | <code>&quot;app&quot;</code></p></blockquote><p>当规则因为 matchTime/actionMaximum 而休眠时, 如何唤醒此规则</p><h4 id="default-1" tabindex="-1">Default <a class="header-anchor" href="#default-1" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;activity&#39;</span></span></code></pre></div><h4 id="example" tabindex="-1">Example <a class="header-anchor" href="#example" aria-label="Permalink to &quot;Example&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;activity&#39;</span></span>
2
2
  <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 当 activity 刷新时, 唤醒规则</span></span>
3
3
  <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 刷新 activity 并不代表 activityId 变化</span></span>
4
4
  <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 如 哔哩哔哩视频播放页 底部点击推荐视频 进入另一个 视频播放页, 进入了新 activity 但是 activityId 并没有变化</span></span></code></pre></div><h4 id="example-1" tabindex="-1">Example <a class="header-anchor" href="#example-1" aria-label="Permalink to &quot;Example&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;app&#39;</span></span>
5
- <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 重新进入 app 时, 唤醒规则</span></span></code></pre></div><h4 id="inherited-from-6" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-6" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#resetmatch"><code>resetMatch</code></a></p><hr><h3 id="actioncdkey" tabindex="-1">actionCdKey? <a class="header-anchor" href="#actioncdkey" aria-label="Permalink to &quot;actionCdKey?&quot;">​</a></h3><blockquote><p><strong>actionCdKey</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>与这个 key 的 rule 共享 cd</p><p>比如开屏广告可能需要多个 rule 去匹配, 当一个 rule 触发时, 其它 rule 的触发是无意义的</p><p>如果你对这个 key 的 rule 设置 actionCd=3000, 那么当这个 rule 和 本 rule 触发任意一个时, 在 3000毫秒 内两个 rule 都将进入 cd</p><h4 id="inherited-from-7" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-7" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actioncdkey"><code>actionCdKey</code></a></p><hr><h3 id="actionmaximumkey" tabindex="-1">actionMaximumKey? <a class="header-anchor" href="#actionmaximumkey" aria-label="Permalink to &quot;actionMaximumKey?&quot;">​</a></h3><blockquote><p><strong>actionMaximumKey</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>与这个 key 的 rule 共享次数</p><p>比如开屏广告可能需要多个 rule 去匹配, 当一个 rule 触发时, 其它 rule 的触发是无意义的</p><p>如果你对这个 key 的 rule 设置 actionMaximum=1, 那么当这个 rule 和 本 rule 触发任意一个时, 两个 rule 都将进入休眠</p><h4 id="inherited-from-8" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-8" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actionmaximumkey"><code>actionMaximumKey</code></a></p><hr><h3 id="order" tabindex="-1">order? <a class="header-anchor" href="#order" aria-label="Permalink to &quot;order?&quot;">​</a></h3><blockquote><p><strong>order</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>规则参与匹配的顺序, 数字越小越先匹配</p><p>如果两个规则 order 相同, 按照 groups 中的数组顺序匹配, app 类型规则顺序优先于 global 类型规则</p><p>属于不同订阅的规则按照订阅列表中顺序匹配, 长按订阅卡片可以拖动排序</p><h4 id="default-2" tabindex="-1">Default <a class="header-anchor" href="#default-2" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">0</span></span></code></pre></div><h4 id="inherited-from-9" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-9" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#order"><code>order</code></a></p><hr><h3 id="snapshoturls" tabindex="-1">snapshotUrls? <a class="header-anchor" href="#snapshoturls" aria-label="Permalink to &quot;snapshotUrls?&quot;">​</a></h3><blockquote><p><strong>snapshotUrls</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>当前 规则/规则组 的快照链接, 增强订阅可维护性</p><h4 id="inherited-from-10" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-10" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#snapshoturls"><code>snapshotUrls</code></a></p><hr><h3 id="exampleurls" tabindex="-1">exampleUrls? <a class="header-anchor" href="#exampleurls" aria-label="Permalink to &quot;exampleUrls?&quot;">​</a></h3><blockquote><p><strong>exampleUrls</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>当前 规则/规则组 的规则在手机上的运行示例, 支持 jpg/png/webp/gif</p><p>如果规则是多个规则组合起来的, 可以更好看懂规则到底在干啥, 比如 点击关闭按钮-选择关闭原因-确认关闭 这种广告用 gif 看着更清楚在干啥</p><h4 id="inherited-from-11" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-11" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#exampleurls"><code>exampleUrls</code></a></p><hr><h3 id="key" tabindex="-1">key <a class="header-anchor" href="#key" aria-label="Permalink to &quot;key&quot;">​</a></h3><blockquote><p><strong>key</strong>: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>当前规则组在列表中的唯一标识</p><p>也是客户端禁用/启用此规则组的依据</p><p>设置后不可更改, 否则造成客户端启用/禁用错乱</p><p>key 没有顺序大小之分, 可以是任意数字</p><h4 id="inherited-from-12" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-12" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#key"><code>key</code></a></p><hr><h3 id="name" tabindex="-1">name <a class="header-anchor" href="#name" aria-label="Permalink to &quot;name&quot;">​</a></h3><blockquote><p><strong>name</strong>: <code>string</code></p></blockquote><p>规则组名称</p><h4 id="inherited-from-13" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-13" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#name"><code>name</code></a></p><hr><h3 id="desc" tabindex="-1">desc? <a class="header-anchor" href="#desc" aria-label="Permalink to &quot;desc?&quot;">​</a></h3><blockquote><p><strong>desc</strong>?: <code>string</code></p></blockquote><p>规则组描述</p><h4 id="inherited-from-14" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-14" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#desc"><code>desc</code></a></p><hr><h3 id="enable" tabindex="-1">enable? <a class="header-anchor" href="#enable" aria-label="Permalink to &quot;enable?&quot;">​</a></h3><blockquote><p><strong>enable</strong>?: <code>boolean</code></p></blockquote><p>控制规则默认情况下是启用还是禁用</p><h4 id="default-3" tabindex="-1">Default <a class="header-anchor" href="#default-3" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">true</span></span></code></pre></div><h4 id="inherited-from-15" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-15" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#enable"><code>enable</code></a></p><hr><h3 id="scopekeys" tabindex="-1">scopeKeys? <a class="header-anchor" href="#scopekeys" aria-label="Permalink to &quot;scopeKeys?&quot;">​</a></h3><blockquote><p><strong>scopeKeys</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<a href="./../type-aliases/Integer.html"><code>Integer</code></a>&gt;</p></blockquote><p>其它 group 的 key, 允许将目标组的所有 rule 添加到当前组的作用域</p><p>假设 group1{key=1} 有一个 rule1{key=11}, group2{key=2} 有 rule2{key=22}, rule3{key=23}</p><p>如果 group1 的 scopeKeys=[2] 并且 group2 没有被禁用, 那么 rule1 的 preKeys/actionCdKey/actionMaximumKey 可以是 11/22/23</p><p>如果存在相同 key 的 rule, 优先使用本组的 rule, 其次按 scopeKeys 的顺序查找其它组的 rule</p><h4 id="inherited-from-16" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-16" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#scopekeys"><code>scopeKeys</code></a></p><hr><h3 id="matchanyapp" tabindex="-1">matchAnyApp? <a class="header-anchor" href="#matchanyapp" aria-label="Permalink to &quot;matchAnyApp?&quot;">​</a></h3><blockquote><p><strong>matchAnyApp</strong>?: <code>boolean</code></p></blockquote><p>true =&gt; 匹配任意应用</p><p>false =&gt; 仅匹配 apps 里面的应用</p><h4 id="default-4" tabindex="-1">Default <a class="header-anchor" href="#default-4" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">true</span></span></code></pre></div><h4 id="inherited-from-17" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-17" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGlobalRuleProps.html"><code>RawGlobalRuleProps</code></a>.<a href="./RawGlobalRuleProps.html#matchanyapp"><code>matchAnyApp</code></a></p><hr><h3 id="matchlauncher" tabindex="-1">matchLauncher? <a class="header-anchor" href="#matchlauncher" aria-label="Permalink to &quot;matchLauncher?&quot;">​</a></h3><blockquote><p><strong>matchLauncher</strong>?: <code>boolean</code></p></blockquote><p>是否匹配桌面, 仅全局规则可用</p><p>如果你切换了桌面, 你需要打开 GKD 的界面触发识别新桌面</p><h4 id="default-5" tabindex="-1">Default <a class="header-anchor" href="#default-5" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">false</span></span></code></pre></div><h4 id="inherited-from-18" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-18" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGlobalRuleProps.html"><code>RawGlobalRuleProps</code></a>.<a href="./RawGlobalRuleProps.html#matchlauncher"><code>matchLauncher</code></a></p><hr><h3 id="matchsystemapp" tabindex="-1">matchSystemApp? <a class="header-anchor" href="#matchsystemapp" aria-label="Permalink to &quot;matchSystemApp?&quot;">​</a></h3><blockquote><p><strong>matchSystemApp</strong>?: <code>boolean</code></p></blockquote><p>是否匹配系统应用, 仅全局规则可用</p><h4 id="default-6" tabindex="-1">Default <a class="header-anchor" href="#default-6" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">false</span></span></code></pre></div><h4 id="inherited-from-19" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-19" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGlobalRuleProps.html"><code>RawGlobalRuleProps</code></a>.<a href="./RawGlobalRuleProps.html#matchsystemapp"><code>matchSystemApp</code></a></p><hr><h3 id="apps" tabindex="-1">apps? <a class="header-anchor" href="#apps" aria-label="Permalink to &quot;apps?&quot;">​</a></h3><blockquote><p><strong>apps</strong>?: <a href="./RawGlobalApp.html"><code>RawGlobalApp</code></a>[]</p></blockquote><p>应用配置列表, 配置应用内界面如何匹配或不匹配</p><h4 id="inherited-from-20" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-20" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGlobalRuleProps.html"><code>RawGlobalRuleProps</code></a>.<a href="./RawGlobalRuleProps.html#apps"><code>apps</code></a></p>`,185),l=[i];function h(s,d,p,n,c,u){return o(),a("div",null,l)}const b=e(t,[["render",h]]);export{f as __pageData,b as default};
5
+ <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 重新进入 app 时, 唤醒规则</span></span></code></pre></div><h4 id="inherited-from-6" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-6" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#resetmatch"><code>resetMatch</code></a></p><hr><h3 id="actioncdkey" tabindex="-1">actionCdKey? <a class="header-anchor" href="#actioncdkey" aria-label="Permalink to &quot;actionCdKey?&quot;">​</a></h3><blockquote><p><strong>actionCdKey</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>与这个 key 的 rule 共享 cd</p><p>比如开屏广告可能需要多个 rule 去匹配, 当一个 rule 触发时, 其它 rule 的触发是无意义的</p><p>如果你对这个 key 的 rule 设置 actionCd=3000, 那么当这个 rule 和 本 rule 触发任意一个时, 在 3000毫秒 内两个 rule 都将进入 cd</p><h4 id="inherited-from-7" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-7" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actioncdkey"><code>actionCdKey</code></a></p><hr><h3 id="actionmaximumkey" tabindex="-1">actionMaximumKey? <a class="header-anchor" href="#actionmaximumkey" aria-label="Permalink to &quot;actionMaximumKey?&quot;">​</a></h3><blockquote><p><strong>actionMaximumKey</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>与这个 key 的 rule 共享次数</p><p>比如开屏广告可能需要多个 rule 去匹配, 当一个 rule 触发时, 其它 rule 的触发是无意义的</p><p>如果你对这个 key 的 rule 设置 actionMaximum=1, 那么当这个 rule 和 本 rule 触发任意一个时, 两个 rule 都将进入休眠</p><h4 id="inherited-from-8" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-8" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actionmaximumkey"><code>actionMaximumKey</code></a></p><hr><h3 id="order" tabindex="-1">order? <a class="header-anchor" href="#order" aria-label="Permalink to &quot;order?&quot;">​</a></h3><blockquote><p><strong>order</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>规则参与匹配的顺序, 数字越小越先匹配</p><p>如果两个规则 order 相同, 按照 groups 中的数组顺序匹配, app 类型规则顺序优先于 global 类型规则</p><p>属于不同订阅的规则按照订阅列表中顺序匹配, 长按订阅卡片可以拖动排序</p><h4 id="default-2" tabindex="-1">Default <a class="header-anchor" href="#default-2" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">0</span></span></code></pre></div><h4 id="inherited-from-9" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-9" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#order"><code>order</code></a></p><hr><h3 id="snapshoturls" tabindex="-1">snapshotUrls? <a class="header-anchor" href="#snapshoturls" aria-label="Permalink to &quot;snapshotUrls?&quot;">​</a></h3><blockquote><p><strong>snapshotUrls</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>当前 规则/规则组 的快照链接, 增强订阅可维护性</p><h4 id="inherited-from-10" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-10" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#snapshoturls"><code>snapshotUrls</code></a></p><hr><h3 id="exampleurls" tabindex="-1">exampleUrls? <a class="header-anchor" href="#exampleurls" aria-label="Permalink to &quot;exampleUrls?&quot;">​</a></h3><blockquote><p><strong>exampleUrls</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>当前 规则/规则组 的规则在手机上的运行示例, 支持 jpg/png/webp/gif</p><p>如果规则是多个规则组合起来的, 可以更好看懂规则到底在干啥, 比如 点击关闭按钮-选择关闭原因-确认关闭 这种广告用 gif 看着更清楚在干啥</p><h4 id="inherited-from-11" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-11" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#exampleurls"><code>exampleUrls</code></a></p><hr><h3 id="key" tabindex="-1">key <a class="header-anchor" href="#key" aria-label="Permalink to &quot;key&quot;">​</a></h3><blockquote><p><strong>key</strong>: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>当前规则组在列表中的唯一标识</p><p>也是客户端禁用/启用此规则组的依据</p><p>设置后不可更改, 否则造成客户端启用/禁用错乱</p><p>key 没有顺序大小之分, 可以是任意数字</p><h4 id="inherited-from-12" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-12" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#key"><code>key</code></a></p><hr><h3 id="name" tabindex="-1">name <a class="header-anchor" href="#name" aria-label="Permalink to &quot;name&quot;">​</a></h3><blockquote><p><strong>name</strong>: <code>string</code></p></blockquote><p>规则组名称</p><h4 id="inherited-from-13" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-13" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#name"><code>name</code></a></p><hr><h3 id="desc" tabindex="-1">desc? <a class="header-anchor" href="#desc" aria-label="Permalink to &quot;desc?&quot;">​</a></h3><blockquote><p><strong>desc</strong>?: <code>string</code></p></blockquote><p>规则组描述</p><h4 id="inherited-from-14" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-14" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#desc"><code>desc</code></a></p><hr><h3 id="enable" tabindex="-1">enable? <a class="header-anchor" href="#enable" aria-label="Permalink to &quot;enable?&quot;">​</a></h3><blockquote><p><strong>enable</strong>?: <code>boolean</code></p></blockquote><p>控制规则默认情况下是启用还是禁用</p><h4 id="default-3" tabindex="-1">Default <a class="header-anchor" href="#default-3" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">true</span></span></code></pre></div><h4 id="inherited-from-15" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-15" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#enable"><code>enable</code></a></p><hr><h3 id="scopekeys" tabindex="-1">scopeKeys? <a class="header-anchor" href="#scopekeys" aria-label="Permalink to &quot;scopeKeys?&quot;">​</a></h3><blockquote><p><strong>scopeKeys</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<a href="./../type-aliases/Integer.html"><code>Integer</code></a>&gt;</p></blockquote><p>其它 group 的 key, 允许将目标组的所有 rule 添加到当前组的作用域</p><p>假设 group1{key=1} 有一个 rule1{key=11}, group2{key=2} 有 rule2{key=22}, rule3{key=23}</p><p>如果 group1 的 scopeKeys=[2] 并且 group2 没有被禁用, 那么 rule1 的 preKeys/actionCdKey/actionMaximumKey 可以是 11/22/23</p><p>如果存在相同 key 的 rule, 优先使用本组的 rule, 其次按 scopeKeys 的顺序查找其它组的 rule</p><h4 id="inherited-from-16" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-16" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#scopekeys"><code>scopeKeys</code></a></p><hr><h3 id="matchanyapp" tabindex="-1">matchAnyApp? <a class="header-anchor" href="#matchanyapp" aria-label="Permalink to &quot;matchAnyApp?&quot;">​</a></h3><blockquote><p><strong>matchAnyApp</strong>?: <code>boolean</code></p></blockquote><p>true =&gt; 匹配任意应用</p><p>false =&gt; 仅匹配 apps 里面的应用</p><h4 id="default-4" tabindex="-1">Default <a class="header-anchor" href="#default-4" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">true</span></span></code></pre></div><h4 id="inherited-from-17" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-17" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGlobalRuleProps.html"><code>RawGlobalRuleProps</code></a>.<a href="./RawGlobalRuleProps.html#matchanyapp"><code>matchAnyApp</code></a></p><hr><h3 id="matchlauncher" tabindex="-1">matchLauncher? <a class="header-anchor" href="#matchlauncher" aria-label="Permalink to &quot;matchLauncher?&quot;">​</a></h3><blockquote><p><strong>matchLauncher</strong>?: <code>boolean</code></p></blockquote><p>是否匹配桌面, 仅全局规则可用</p><p>如果你切换了桌面, 你需要打开 GKD 的界面触发识别新桌面</p><h4 id="default-5" tabindex="-1">Default <a class="header-anchor" href="#default-5" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">false</span></span></code></pre></div><h4 id="inherited-from-18" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-18" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGlobalRuleProps.html"><code>RawGlobalRuleProps</code></a>.<a href="./RawGlobalRuleProps.html#matchlauncher"><code>matchLauncher</code></a></p><hr><h3 id="matchsystemapp" tabindex="-1">matchSystemApp? <a class="header-anchor" href="#matchsystemapp" aria-label="Permalink to &quot;matchSystemApp?&quot;">​</a></h3><blockquote><p><strong>matchSystemApp</strong>?: <code>boolean</code></p></blockquote><p>是否匹配系统应用, 仅全局规则可用</p><h4 id="default-6" tabindex="-1">Default <a class="header-anchor" href="#default-6" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">false</span></span></code></pre></div><h4 id="inherited-from-19" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-19" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGlobalRuleProps.html"><code>RawGlobalRuleProps</code></a>.<a href="./RawGlobalRuleProps.html#matchsystemapp"><code>matchSystemApp</code></a></p><hr><h3 id="apps" tabindex="-1">apps? <a class="header-anchor" href="#apps" aria-label="Permalink to &quot;apps?&quot;">​</a></h3><blockquote><p><strong>apps</strong>?: <a href="./RawGlobalApp.html"><code>RawGlobalApp</code></a>[]</p></blockquote><p>应用配置列表, 配置应用内界面如何匹配或不匹配</p><h4 id="inherited-from-20" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-20" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGlobalRuleProps.html"><code>RawGlobalRuleProps</code></a>.<a href="./RawGlobalRuleProps.html#apps"><code>apps</code></a></p>`,186),l=[i];function h(s,d,p,n,c,u){return o(),a("div",null,l)}const b=e(t,[["render",h]]);export{f as __pageData,b as default};
@@ -1 +1 @@
1
- import{_ as e,c as a,o,V as r}from"./chunks/framework.IfA2_2T5.js";const f=JSON.parse('{"title":"RawGlobalGroup","description":"","frontmatter":{},"headers":[],"relativePath":"api/interfaces/RawGlobalGroup.md","filePath":"api/interfaces/RawGlobalGroup.md","lastUpdated":null}'),t={name:"api/interfaces/RawGlobalGroup.md"},i=r("",185),l=[i];function h(s,d,p,n,c,u){return o(),a("div",null,l)}const b=e(t,[["render",h]]);export{f as __pageData,b as default};
1
+ import{_ as e,c as a,o,V as r}from"./chunks/framework.IfA2_2T5.js";const f=JSON.parse('{"title":"RawGlobalGroup","description":"","frontmatter":{},"headers":[],"relativePath":"api/interfaces/RawGlobalGroup.md","filePath":"api/interfaces/RawGlobalGroup.md","lastUpdated":null}'),t={name:"api/interfaces/RawGlobalGroup.md"},i=r("",186),l=[i];function h(s,d,p,n,c,u){return o(),a("div",null,l)}const b=e(t,[["render",h]]);export{f as __pageData,b as default};
@@ -1,4 +1,4 @@
1
- import{j as o,a4 as p,a5 as u,a6 as c,a7 as l,a8 as f,a9 as d,aa as m,ab as h,ac as A,ad as g,Y as v,d as P,u as w,l as y,z as C,ae as R,af as _,ag as b,ah as E}from"./chunks/framework.IfA2_2T5.js";import{R as D}from"./chunks/theme.yFgFlaEK.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(D),T=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=w();return y(()=>{C(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&R(),_(),b(),s.setup&&s.setup(),()=>E(s.Layout)}});async function j(){const e=O(),a=L();a.provide(u,e);const t=c(e.route);return a.provide(l,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function L(){return h(T)}function O(){let e=o,a;return A(t=>{let n=g(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=v(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1707218812039/files/.vitepress/dist"+u}return u})(n)),__vite__mapDeps([]))),o&&(e=!1),r},s.NotFound)}o&&j().then(({app:e,router:a,data:t})=>{a.go().then(()=>{p(a.route,t.site),e.mount("#app")})});export{j as createApp};
1
+ import{j as o,a4 as p,a5 as u,a6 as c,a7 as l,a8 as f,a9 as d,aa as m,ab as h,ac as A,ad as g,Y as v,d as P,u as w,l as y,z as C,ae as R,af as _,ag as b,ah as E}from"./chunks/framework.IfA2_2T5.js";import{R as D}from"./chunks/theme.LuVFQIpW.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(D),T=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=w();return y(()=>{C(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&R(),_(),b(),s.setup&&s.setup(),()=>E(s.Layout)}});async function j(){const e=O(),a=L();a.provide(u,e);const t=c(e.route);return a.provide(l,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function L(){return h(T)}function O(){let e=o,a;return A(t=>{let n=g(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=v(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1707310164513/files/.vitepress/dist"+u}return u})(n)),__vite__mapDeps([]))),o&&(e=!1),r},s.NotFound)}o&&j().then(({app:e,router:a,data:t})=>{a.go().then(()=>{p(a.route,t.site),e.mount("#app")})});export{j as createApp};
2
2
  function __vite__mapDeps(indexes) {
3
3
  if (!__vite__mapDeps.viteFileDeps) {
4
4
  __vite__mapDeps.viteFileDeps = []