123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
- <title>Interval</title>
- <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>
- <body>
- <div id="container">
- <div id="leftColumn"><a href="../../../index.html">
- <div id="logo"></div>
- </a>
- <div id="paneSearch"></div>
- <div id="sideMenu"></div>
- </div>
- <div id="main">
- <div id="leftToggler"><span class="icon-toggler"></span></div>
- <script type="text/javascript" src="../../../scripts/main.js"></script> <div class="main-content" id="content" pageIds="Net::com.drake.net.time/Interval///PointingToDeclaration//1281733757">
- <div class="navigation-wrapper" id="navigation-wrapper">
- <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>
- <div class="pull-right d-flex">
- <div id="searchBar"></div>
- </div>
- </div>
- <div class="cover ">
- <h1 class="cover"><span>Interval</span></h1>
- <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>
- </div>
- <div class="tabbedcontent">
- <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>
- <div class="tabs-section-body">
- <h2 class="">Parameters</h2>
- <div data-togglable="Parameters">
- <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>
- </div>
- <h2 class="tabbedcontent">Constructors</h2>
- <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>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue TabbedContent">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <div class="title">
- <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>
- </div>
- </div>
- </div>
- </div>
- <a data-name="1595381041%2FConstructors%2F1281733757" anchor-label="Interval" id="1595381041%2FConstructors%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue TabbedContent">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <div class="title">
- <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>
- </div>
- </div>
- </div>
- </div>
- </div>
- <h2 class="">Functions</h2>
- <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>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <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>
- <div>
- <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>) -> <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>
- </div>
- <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>
- </div>
- </div>
- </div>
- </div>
- <a data-name="1129928924%2FFunctions%2F1281733757" anchor-label="life" id="1129928924%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <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>
- <div>
- <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>
- </div>
- <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>
- </div>
- </div>
- </div>
- </div>
- <a data-name="1695839502%2FFunctions%2F1281733757" anchor-label="pause" id="1695839502%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <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>
- <div>
- <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>
- </div>
- <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>
- </div>
- </div>
- </div>
- </div>
- <a data-name="592987093%2FFunctions%2F1281733757" anchor-label="reset" id="592987093%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <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>
- <div>
- <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>
- </div>
- <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>
- </div>
- </div>
- </div>
- </div>
- <a data-name="117559945%2FFunctions%2F1281733757" anchor-label="resume" id="117559945%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <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>
- <div>
- <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>
- </div>
- <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>
- </div>
- </div>
- </div>
- </div>
- <a data-name="-1977702366%2FFunctions%2F1281733757" anchor-label="start" id="-1977702366%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <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>
- <div>
- <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>
- </div>
- <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>
- </div>
- </div>
- </div>
- </div>
- <a data-name="2062900884%2FFunctions%2F1281733757" anchor-label="stop" id="2062900884%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <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>
- <div>
- <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>
- </div>
- <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>
- </div>
- </div>
- </div>
- </div>
- <a data-name="-2129063926%2FFunctions%2F1281733757" anchor-label="subscribe" id="-2129063926%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <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>
- <div>
- <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>) -> <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>
- </div>
- <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>
- </div>
- </div>
- </div>
- </div>
- <a data-name="1652558178%2FFunctions%2F1281733757" anchor-label="switch" id="1652558178%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <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>
- <div>
- <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>
- </div>
- <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>
- </div>
- </div>
- </div>
- </div>
- </div>
- <h2 class="">Properties</h2>
- <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>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <div class="title">
- <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>
- </div>
- </div>
- </div>
- </div>
- <a data-name="1215210377%2FProperties%2F1281733757" anchor-label="end" id="1215210377%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <div class="title">
- <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>
- </div>
- </div>
- </div>
- </div>
- <a data-name="-519771437%2FProperties%2F1281733757" anchor-label="state" id="-519771437%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
- <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
- <div class="main-subrow keyValue ">
- <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>
- <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
- </span></span></div>
- <div>
- <div class="title">
- <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>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <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>
- </div>
- </div>
- </body>
- </html>
|