1
0

index.html 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <html>
  2. <head>
  3. <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
  4. <title>Interval</title>
  5. <link href="../../../../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script><script type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async="async"></script><link href="../../../styles/style.css" rel="Stylesheet"><link href="../../../styles/logo-styles.css" rel="Stylesheet"><link href="../../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../../styles/main.css" rel="Stylesheet"><script type="text/javascript" src="../../../scripts/clipboard.js" async="async"></script><script type="text/javascript" src="../../../scripts/navigation-loader.js" async="async"></script><script type="text/javascript" src="../../../scripts/platform-content-handler.js" async="async"></script><script type="text/javascript" src="../../../scripts/main.js" async="async"></script> </head>
  6. <body>
  7. <div id="container">
  8. <div id="leftColumn"><a href="../../../index.html">
  9. <div id="logo"></div>
  10. </a>
  11. <div id="paneSearch"></div>
  12. <div id="sideMenu"></div>
  13. </div>
  14. <div id="main">
  15. <div id="leftToggler"><span class="icon-toggler"></span></div>
  16. <script type="text/javascript" src="../../../scripts/main.js"></script> <div class="main-content" id="content" pageIds="Net::com.drake.net.time/Interval///PointingToDeclaration//1281733757">
  17. <div class="navigation-wrapper" id="navigation-wrapper">
  18. <div class="breadcrumbs"><a href="../../../index.html">Net</a>/<a href="../index.html">com.drake.net.time</a>/<a href="index.html">Interval</a></div>
  19. <div class="pull-right d-flex">
  20. <div id="searchBar"></div>
  21. </div>
  22. </div>
  23. <div class="cover ">
  24. <h1 class="cover"><span>Interval</span></h1>
  25. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">open class <a href="index.html">Interval</a>(end: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a>, period: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a>, unit: <a href="https://developer.android.com/reference/kotlin/java/util/concurrent/TimeUnit.html">TimeUnit</a>, start: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a>, initialDelay: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a>) : <a href="https://developer.android.com/reference/kotlin/java/io/Serializable.html">Serializable</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><p class="paragraph">轮循器</p><p class="paragraph">操作</p><ol><li><p class="paragraph">开启: 只有在闲置状态下才可以开始</p></li><li><p class="paragraph">停止</p></li><li><p class="paragraph">暂停</p></li><li><p class="paragraph">继续</p></li><li><p class="paragraph">重置: 重置不会导致轮循器停止</p></li><li><p class="paragraph">开关: 开启|暂停切换</p></li><li><p class="paragraph">生命周期</p></li></ol><p class="paragraph">回调: 允许多次订阅同一个轮循器</p><ol><li><p class="paragraph">每个事件</p></li><li><p class="paragraph">停止或者结束</p></li></ol></div></div>
  26. </div>
  27. <div class="tabbedcontent">
  28. <div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="Constructors">Constructors</button><button class="section-tab" data-togglable="Functions">Functions</button><button class="section-tab" data-togglable="Properties">Properties</button><button class="section-tab" data-togglable="Parameters">Parameters</button></div>
  29. <div class="tabs-section-body">
  30. <h2 class="">Parameters</h2>
  31. <div data-togglable="Parameters">
  32. <div class="platform-hinted WithExtraAttributes" data-platform-hinted="data-platform-hinted" data-togglable="Parameters"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div data-togglable="Parameters"><div class="table" data-togglable="Parameters"><div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex">end</span></div><div><div class="title"><div data-togglable="Parameters"><p class="paragraph">结束值</p></div></div></div></div></div><div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex">period</span></div><div><div class="title"><div data-togglable="Parameters"><p class="paragraph">计时器间隔</p></div></div></div></div></div><div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex">unit</span></div><div><div class="title"><div data-togglable="Parameters"><p class="paragraph">计时器单位</p></div></div></div></div></div><div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex">initialDelay</span></div><div><div class="title"><div data-togglable="Parameters"><p class="paragraph">第一次事件的间隔时间, 默认0</p></div></div></div></div></div><div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex">start</span></div><div><div class="title"><div data-togglable="Parameters"><p class="paragraph">开始值, 当<a href="start.html">start</a>]比<a href="end.html">end</a>值大, 且end不等于-1时, 即为倒计时, 反之正计时</p></div></div></div></div></div></div></div></div></div>
  33. </div>
  34. <h2 class="tabbedcontent">Constructors</h2>
  35. <div class="table" data-togglable="Constructors"><a data-name="-1791713923%2FConstructors%2F1281733757" anchor-label="Interval" id="-1791713923%2FConstructors%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  36. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  37. <div class="main-subrow keyValue TabbedContent">
  38. <div class=""><span class="inline-flex"><a href="-interval.html">Interval</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1791713923%2FConstructors%2F1281733757"></span>
  39. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  40. </span></span></div>
  41. <div>
  42. <div class="title">
  43. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="-interval.html">Interval</a>(period: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a>, unit: <a href="https://developer.android.com/reference/kotlin/java/util/concurrent/TimeUnit.html">TimeUnit</a>, initialDelay: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a> = 0)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. <a data-name="1595381041%2FConstructors%2F1281733757" anchor-label="Interval" id="1595381041%2FConstructors%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  49. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  50. <div class="main-subrow keyValue TabbedContent">
  51. <div class=""><span class="inline-flex"><a href="-interval.html">Interval</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1595381041%2FConstructors%2F1281733757"></span>
  52. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  53. </span></span></div>
  54. <div>
  55. <div class="title">
  56. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="-interval.html">Interval</a>(end: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a>, period: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a>, unit: <a href="https://developer.android.com/reference/kotlin/java/util/concurrent/TimeUnit.html">TimeUnit</a>, start: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a> = 0, initialDelay: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a> = 0)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief ">结束值</div></div></div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. <h2 class="">Functions</h2>
  63. <div class="table" data-togglable="Functions"><a data-name="789097985%2FFunctions%2F1281733757" anchor-label="finish" id="789097985%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  64. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  65. <div class="main-subrow keyValue ">
  66. <div class=""><span class="inline-flex"><a href="finish.html">finish</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="789097985%2FFunctions%2F1281733757"></span>
  67. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  68. </span></span></div>
  69. <div>
  70. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  71. <div>
  72. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="finish.html">finish</a>(block: (<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a>) -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>): <a href="index.html">Interval</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  73. </div>
  74. <a data-name="789097985%2FFunctions%2F1281733757" anchor-label="finish" id="789097985%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="789097985%2FFunctions%2F1281733757" anchor-label="finish" id="789097985%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>轮循器完成时回调该函数</div></div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. <a data-name="1129928924%2FFunctions%2F1281733757" anchor-label="life" id="1129928924%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  80. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  81. <div class="main-subrow keyValue ">
  82. <div class=""><span class="inline-flex"><a href="life.html">life</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1129928924%2FFunctions%2F1281733757"></span>
  83. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  84. </span></span></div>
  85. <div>
  86. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  87. <div>
  88. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="life.html">life</a>(lifecycleOwner: <a href="https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner.html">LifecycleOwner</a>, lifeEvent: <a href="https://developer.android.com/reference/kotlin/androidx/lifecycle/Lifecycle.Event.html">Lifecycle.Event</a> = Lifecycle.Event.ON_STOP): <a href="index.html">Interval</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  89. </div>
  90. <a data-name="1129928924%2FFunctions%2F1281733757" anchor-label="life" id="1129928924%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="1129928924%2FFunctions%2F1281733757" anchor-label="life" id="1129928924%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>绑定生命周期, 在指定生命周期发生时取消轮循器</div></div>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <a data-name="1695839502%2FFunctions%2F1281733757" anchor-label="pause" id="1695839502%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  96. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  97. <div class="main-subrow keyValue ">
  98. <div class=""><span class="inline-flex"><a href="pause.html">pause</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1695839502%2FFunctions%2F1281733757"></span>
  99. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  100. </span></span></div>
  101. <div>
  102. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  103. <div>
  104. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="pause.html">pause</a>()<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  105. </div>
  106. <a data-name="1695839502%2FFunctions%2F1281733757" anchor-label="pause" id="1695839502%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="1695839502%2FFunctions%2F1281733757" anchor-label="pause" id="1695839502%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>暂停</div></div>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. <a data-name="592987093%2FFunctions%2F1281733757" anchor-label="reset" id="592987093%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  112. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  113. <div class="main-subrow keyValue ">
  114. <div class=""><span class="inline-flex"><a href="reset.html">reset</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="592987093%2FFunctions%2F1281733757"></span>
  115. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  116. </span></span></div>
  117. <div>
  118. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  119. <div>
  120. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="reset.html">reset</a>()<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  121. </div>
  122. <a data-name="592987093%2FFunctions%2F1281733757" anchor-label="reset" id="592987093%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="592987093%2FFunctions%2F1281733757" anchor-label="reset" id="592987093%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>重置</div></div>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. <a data-name="117559945%2FFunctions%2F1281733757" anchor-label="resume" id="117559945%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  128. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  129. <div class="main-subrow keyValue ">
  130. <div class=""><span class="inline-flex"><a href="resume.html">resume</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="117559945%2FFunctions%2F1281733757"></span>
  131. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  132. </span></span></div>
  133. <div>
  134. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  135. <div>
  136. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="resume.html">resume</a>()<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  137. </div>
  138. <a data-name="117559945%2FFunctions%2F1281733757" anchor-label="resume" id="117559945%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="117559945%2FFunctions%2F1281733757" anchor-label="resume" id="117559945%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>继续 要求轮循器为暂停状态<a href="../-interval-status/-s-t-a-t-e_-p-a-u-s-e/index.html">IntervalStatus.STATE_PAUSE</a>, 否则无效</div></div>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. <a data-name="-1977702366%2FFunctions%2F1281733757" anchor-label="start" id="-1977702366%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  144. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  145. <div class="main-subrow keyValue ">
  146. <div class=""><span class="inline-flex"><a href="start.html">start</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1977702366%2FFunctions%2F1281733757"></span>
  147. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  148. </span></span></div>
  149. <div>
  150. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  151. <div>
  152. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="start.html">start</a>()<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  153. </div>
  154. <a data-name="-1977702366%2FFunctions%2F1281733757" anchor-label="start" id="-1977702366%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="-1977702366%2FFunctions%2F1281733757" anchor-label="start" id="-1977702366%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>开始</div></div>
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. <a data-name="2062900884%2FFunctions%2F1281733757" anchor-label="stop" id="2062900884%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  160. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  161. <div class="main-subrow keyValue ">
  162. <div class=""><span class="inline-flex"><a href="stop.html">stop</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="2062900884%2FFunctions%2F1281733757"></span>
  163. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  164. </span></span></div>
  165. <div>
  166. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  167. <div>
  168. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="stop.html">stop</a>()<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  169. </div>
  170. <a data-name="2062900884%2FFunctions%2F1281733757" anchor-label="stop" id="2062900884%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="2062900884%2FFunctions%2F1281733757" anchor-label="stop" id="2062900884%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>停止</div></div>
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. <a data-name="-2129063926%2FFunctions%2F1281733757" anchor-label="subscribe" id="-2129063926%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  176. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  177. <div class="main-subrow keyValue ">
  178. <div class=""><span class="inline-flex"><a href="subscribe.html">subscribe</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-2129063926%2FFunctions%2F1281733757"></span>
  179. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  180. </span></span></div>
  181. <div>
  182. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  183. <div>
  184. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="subscribe.html">subscribe</a>(block: (<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a>) -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>): <a href="index.html">Interval</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  185. </div>
  186. <a data-name="-2129063926%2FFunctions%2F1281733757" anchor-label="subscribe" id="-2129063926%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="-2129063926%2FFunctions%2F1281733757" anchor-label="subscribe" id="-2129063926%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>订阅轮循器 每次轮循器计时都会调用该回调函数 轮循器完成时会同时触发回调<a href="subscribe.html">block</a>和<a href="finish.html">finish</a></div></div>
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. <a data-name="1652558178%2FFunctions%2F1281733757" anchor-label="switch" id="1652558178%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  192. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  193. <div class="main-subrow keyValue ">
  194. <div class=""><span class="inline-flex"><a href="switch.html">switch</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1652558178%2FFunctions%2F1281733757"></span>
  195. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  196. </span></span></div>
  197. <div>
  198. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  199. <div>
  200. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="switch.html">switch</a>()<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  201. </div>
  202. <a data-name="1652558178%2FFunctions%2F1281733757" anchor-label="switch" id="1652558178%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="1652558178%2FFunctions%2F1281733757" anchor-label="switch" id="1652558178%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>切换轮循器开始或结束</div></div>
  203. </div>
  204. </div>
  205. </div>
  206. </div>
  207. </div>
  208. <h2 class="">Properties</h2>
  209. <div class="table" data-togglable="Properties"><a data-name="-1680553963%2FProperties%2F1281733757" anchor-label="count" id="-1680553963%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  210. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  211. <div class="main-subrow keyValue ">
  212. <div class=""><span class="inline-flex"><a href="count.html">count</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1680553963%2FProperties%2F1281733757"></span>
  213. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  214. </span></span></div>
  215. <div>
  216. <div class="title">
  217. <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><a data-name="-1680553963%2FProperties%2F1281733757" anchor-label="count" id="-1680553963%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="symbol monospace">var <a href="count.html">count</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><a data-name="-1680553963%2FProperties%2F1281733757" anchor-label="count" id="-1680553963%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>轮循器的计数</div></div></div>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. <a data-name="1215210377%2FProperties%2F1281733757" anchor-label="end" id="1215210377%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  223. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  224. <div class="main-subrow keyValue ">
  225. <div class=""><span class="inline-flex"><a href="end.html">end</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1215210377%2FProperties%2F1281733757"></span>
  226. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  227. </span></span></div>
  228. <div>
  229. <div class="title">
  230. <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><a data-name="1215210377%2FProperties%2F1281733757" anchor-label="end" id="1215210377%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="symbol monospace">var <a href="end.html">end</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><a data-name="1215210377%2FProperties%2F1281733757" anchor-label="end" id="1215210377%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>结束值</div></div></div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. <a data-name="-519771437%2FProperties%2F1281733757" anchor-label="state" id="-519771437%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  236. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  237. <div class="main-subrow keyValue ">
  238. <div class=""><span class="inline-flex"><a href="state.html">state</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-519771437%2FProperties%2F1281733757"></span>
  239. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  240. </span></span></div>
  241. <div>
  242. <div class="title">
  243. <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><a data-name="-519771437%2FProperties%2F1281733757" anchor-label="state" id="-519771437%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="symbol monospace">var <a href="state.html">state</a>: <a href="../-interval-status/index.html">IntervalStatus</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><a data-name="-519771437%2FProperties%2F1281733757" anchor-label="state" id="-519771437%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>轮循器当前状态</div></div></div>
  244. </div>
  245. </div>
  246. </div>
  247. </div>
  248. </div>
  249. </div>
  250. </div>
  251. </div>
  252. <div class="footer"><span class="go-to-top-icon"><a href="#content"></a></span><span>© 2021 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span></div>
  253. </div>
  254. </div>
  255. </body>
  256. </html>